I am pausing my simulation using an assertion block, as shown in below documentation example:
I tried to add below simulation command to the 'PauseFcn' callback to resume the simulation automatically, but it doesn't work:
set_param(bdroot,'SimulationCommand','continue')
However, I can continue the simulation if I enter the command manually at the MATLAB Command Prompt. Why is this?
Best Answer