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

6 views (last 30 days)
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 Comments
Rik
Rik on 2 Aug 2019
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.

Sign in to comment.

Answers (2)

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

Kenny
Kenny on 27 Nov 2017
Edited: Kenny on 27 Nov 2017
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.

Categories

Find more on Get Started with Control System Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!