MATLAB: Simulink scope range from 0 to 5

simulink

i have a simulink project that asked me to show the signal from 0 to 5 only how i can make the scope only show me from 0 to 5 not other than that

Best Answer

Change the stop time of your simulation to 5. Why do you need to run simulation after that?
The other option is this: In scope window, Go to View menu > Configuration Properties > Time tab, change Time span to 5.