Why is MATLAB and Simulink giving me different results when trying to find the closed-loop step response?

조회 수: 2 (최근 30일)
for the unity feedback system G(s)= 30(s^2-5s+3)/(s+1)(s+2)(s+4)(s+5) determine the closed-loop step response
>> G = tf(conv([30],[1 -5 3]), conv(conv([1 1],[1 2]),conv([1 4],[1 5])))
G =
30 s^2 - 150 s + 90
---------------------------------
s^4 + 12 s^3 + 49 s^2 + 78 s + 40
Continuous-time transfer function.
>> H = feedback(G, 1)
H =
30 s^2 - 150 s + 90
----------------------------------
s^4 + 12 s^3 + 79 s^2 - 72 s + 130
Continuous-time transfer function.
>> step(H)
This is the code I use in MATLAB however, when I generate the model suing Simulink It's giving me a different answer
  댓글 수: 2
Rik
Rik 2019년 8월 2일
Flag by I:
Please delete this question as I do not want my profile publicly visible
Response:
As far as I'm aware, every profile is publicly visible. You can choose to delete your account or choose to not put anything on your profile. If you want to stay anonymous and not have anything visible, you shouldn't post a question on a public forum. The only information that is public is that your initials are IG and everything you posted in this thread.

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

답변 (2개)

hashim khan
hashim khan 2017년 11월 22일
I am facing the problem. the step response for one has no overshoot while the same feedback system has a 10% overshoot.

Kenny
Kenny 2017년 11월 27일
편집: Kenny 2017년 11월 27일
For this particular closed loop feedback function, the denominator polynomial coefficients don't have all the same 'signs'. At least one coefficient is negative. So this suggests the system is unstable. So if you put in a unit step, the response is going to get out of control already.
Also, rather than type G(s)= 30(s^2-5s+3)/(s+1)(s+2)(s+4)(s+5), it would be better to express it like G(s)= 30(s^2-5s+3)/[(s+1)(s+2)(s+4)(s+5)], just to be clear about the order of the operations.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by