StepInfo Outputting NaN for my Transfer Function

조회 수: 15 (최근 30일)
Omar
Omar 2011년 9월 16일
I am trying to find the overshoot of a transfer function for a step response but the stepinfo command does not display anything useful. This is the code.
sys=tf(280*[1 1.5 .5], [100 215 30.5 1 0]);
stepinfo(sys)
ans =
RiseTime: NaN
SettlingTime: NaN
SettlingMin: NaN
SettlingMax: NaN
Overshoot: NaN
Undershoot: NaN
Peak: Inf
PeakTime: Inf

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2011년 9월 16일
a=step(sys);
b=stepinfo(a)

Craig
Craig 2011년 11월 18일
Hi Omar,
The system you specified has an integrator and is therefore unstable. This is the reason why NaN's are being returned by stepinfo.
You can see the response by doing
>> step(sys)
-craig
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 11월 19일
That is the point of my answer. It needs to run step() first to get the step response and then run stepinfo() using the step response as the input.
The existence of an integrator in the system increases the chance of making the system stable. It's usually the derivative that makes the system un-stable.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Control System Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by