MATLAB: Control parameters of a simulink block controlparameterssimulink Hi, Is it possible to control parameters of a simulink block with another block? Say create a block which controls the 'seed' value of 'Random Number Generator'. Thanks Senmeis Best Answer In general, this is not a supported workflow, please see How Do I Change a Block Parameter Based on the Output of Another Block? The suggested solution would be re-implement the block so that the parameter value is accepted via an input port. Related SolutionsMATLAB: Changing block parameter during simulation. Use set_param to modify your block parameters. Use alsoset_param(modelName,'SimulationCommand','start'); % to start simulation set_param(modelName,'SimulationCommand','pause'); % to pause simulation% Change your parameters with set_paramset_param(modelName,'SimulationCommand','update');set_param(modelName,'SimulationCommand','continue'); % to continue simulation MATLAB: How to add a mask parameter to a simulink block You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc. Related QuestionCan I set the data parameter of a Fromworkspace block by programming ??Is there a way to automatic update the P and I gains of PI controller block in simulinkCan I change sampling time of block (in Simulink Model) DynamicallyNotifications when a Simulink block parameters changeAssigning Simulink parameters values to the Model Workspace using command line or scripting
Best Answer