MATLAB: Does set_param(‘the_model’, ‘SimulationCommand’, ‘continue’, ‘SimulationCommand’, ‘pause’) within a loop work in R2016b, but not in R2016a

simulink

The following command within a loop works well in R2016b:
>> set_param('my_model', 'SimulationCommand', 'continue', 'SimulationCommand', 'pause')
However, in R2016a, the model simulation has no response when running that command.

Best Answer

This syntax is not documented and is thus not recommended. Please see here for example uses: