![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1649001/image.png)
I did step function from data that generated from Simulink. the graph is the one that I need and there's possible number for overshoot value. however the step info didnt show.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1648976/image.png)
%graph
figure()
subplot(2,1,1)
plot(out.tout,out.res(:,2),'-k')
hold on
plot(out.tout,out.res(:,1),'--k')
hold on
plot(out.tout,out.res1(:,1),'--b')
hold on
plot(out.tout,out.res2(:,1),'--g')
%Step infor
stepinfo(out.tout,out.res(:,1))
stepinfo(out.tout,out.res1(:,1))
stepinfo(out.tout,out.res2(:,1))
1 Kommentar
Sam Chak
am 22 Mär. 2024
Can you save the structured data 'out' in the mat-file and attach the file here? Click the paperclip icon. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1649001/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1649001/image.png)
save myOut.mat
Antworten (1)
Brahmadev
am 2 Apr. 2024
As per the code you have provided, I am assuming that "out.res" has the output data and "out.tout" has the corresponding time vector. You could try exchanging the arguments for "stepinfo" for more meaningful information.
stepinfo(out.res(:, 1), out.tout);
You can also refer to the following example for more information on the usage:
Hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu View and Analyze Simulation Results finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!