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 (최근 30일)
이전 댓글 표시
%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
Sam Chak
2024년 3월 22일
Can you save the structured data 'out' in the mat-file and attach the file here? Click the paperclip icon.
save myOut.mat
답변 (1개)
Brahmadev
2024년 4월 2일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!