plot with same inputs don't show same values SIMULINK scope
Show older comments
Hello i have a simulink in matlab and when i use scope in simulink it shape is different from when i use plot in command window(plot(simout)) the period in scope is between 0-150 but in plot it's 0-5000 and Although i did use xlim to change the period in plot but it changed the whole output for example in scope my first overshoot happens at 2.5 second but in plot what i did see is 98.5 seconds!!! i tried anything it didn't answer at all
1 Comment
What type of variable is simout? It sounds like you are saving the signal as an array without time. This would make the MATLAB plot show your signal versus sample number, not versus time as the scope does. Is the length of simout the largest x value you see on your plot?
Answers (0)
Categories
Find more on Scopes and Data Logging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!