MATLAB: In Simulink demo sldemo_absbrake, the plotys are generated without using blocks. How did they do it

MATLAB and Simulink Student Suiteplotting

I suspect it is related to logging data in workspace..???

Best Answer

It is done via Simulation Data Inspector. If you click on the icon on the yout and slip signal in the model, Simulation Data Inspector pane will open up and there you will see signals automatically logged and plotted at the end of the simulation. Data Inspector's job is to plot them automatically at the end of the simulation.
Also, if you go to File->Model Properties->Model Properties->Callbacks->StopFcn, you will see the necessary command to plot the logged signals. Check those callbacks to see actually what is going on.
Hope this helps.