I am running a Simulink model from the command line using the sim() command. I also activated the Save data to workspace in my scopes. The simulation runs without problems but the variables are not saved by the scope. Note that if I start the simulation using the play button from my simulink model, data is saved to the workspace.
sim
command? Simply withsim(my_model)
or with an output argument, such asSimOut = sim(my_model);
? – am304SimOut = sim(my_model)
, the variableSimOut
is created but it's empty – user2536125