MATLAB: Fixed step solver simulation

fixed-step

Hi, I'm trying to implement a model using simulink. But i'm in trouble with this fixed-step-solver, after I run the simulation any scope box of my model seems to have a very short interval of my time simulation. For example if I run it from 0 to 5 s. My scope appears with a line from 4.775 to 4.778. I don't know how to fix this.

Best Answer

Look at the scope block's history tab under the scope parameters. There is a 'limit data points to last' option you want to uncheck. Note that this will use more memory as the scope will need to store more data points.