Accurate rise time with stepinfo()
이전 댓글 표시
I have the following code:
g = tf([0 0 5000],[1 200 5000]);
step(g); grid on;
S = stepinfo(step(g),'RiseTimeLimits',[0 0.632])
the figure producued by step(g) is here:

from looking at this, it is obvious that the rise time to 63.2% of the steady state output is approximately 0.04. However, the stepinfo() command says the rise time is
RiseTime: 74.6661
This number makes no sense at all. Is there something I am missing? I have used stepinfo() before and got accurate results but this has me stumped.
채택된 답변
추가 답변 (1개)
Paul
2020년 12월 9일
The first input to stepinfo is incorrect. It should just be g
>> S = stepinfo(g,'RiseTimeLimits',[0 0.632])
S =
struct with fields:
RiseTime: 4.0539e-02
SettlingTime: 1.3999e-01
SettlingMin: 6.3697e-01
SettlingMax: 9.9839e-01
Overshoot: 0
Undershoot: 0
Peak: 9.9839e-01
PeakTime: 2.2606e-01
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!