Step is plotting backwards

조회 수: 4 (최근 30일)
Andres Yie
Andres Yie 2017년 3월 25일
댓글: Star Strider 2017년 3월 25일
Im trying yo get the step response the transfunction:
244.2 s + 244.2
-------------------------------------------------
0.015 s^4 + 1.525 s^3 + 2.51 s^2 + 245.2 s + 1221
but the resulting plot is something kind of reversed:
Why is this happening? is there a way to solve it?
Also stepinfo give me wierd values:
RiseTime: NaN SettlingTime: NaN SettlingMin: NaN SettlingMax: NaN Overshoot: NaN Undershoot: NaN Peak: Inf PeakTime: Inf

채택된 답변

Star Strider
Star Strider 2017년 3월 25일
The step function is correct.
Your system is unstable.
s = tf('s');
sys = (244.2*s + 244.2) / (0.015*s^4 + 1.525*s^3 + 2.51*s^2 + 245.2*s + 1221);
sys_poles = pole(sys)
sys_poles =
-101.53 + 0i
2.2371 + 12.99i
2.2371 - 12.99i
-4.6143 + 0i
You have a conjugate pair of poles in the RHP.
  댓글 수: 2
Andres Yie
Andres Yie 2017년 3월 25일
Oh. I did not know the Step function ploted unstable systems that way.
Thanks!
Star Strider
Star Strider 2017년 3월 25일
My pleasure!

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

추가 답변 (1개)

Les Beckham
Les Beckham 2017년 3월 25일
편집: Les Beckham 2017년 3월 25일
This transfer function is unstable. It has a pair of complex (oscillatory) poles that are slightly in the right half plane. Thus, any disturbance (like a step) will cause the response to 'blow up'.
>> damp(sys)|
Pole Damping Frequency Time Constant
(rad/seconds) (seconds)
-4.61e+00 1.00e+00 4.61e+00 2.17e-01
2.24e+00 + 1.30e+01i -1.70e-01 1.32e+01 -4.47e-01
2.24e+00 - 1.30e+01i -1.70e-01 1.32e+01 -4.47e-01
-1.02e+02 1.00e+00 1.02e+02 9.85e-03|

Community Treasure Hunt

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

Start Hunting!

Translated by