Question

Obtain the response of the closed loop system using MATLAB: C(s)/R(s) = 5 / (s^2 +...

  1. Obtain the response of the closed loop system using MATLAB:

C(s)/R(s) = 5 / (s^2 + s + 5) when the input is given by r(t) = 1 + t^2

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. If the given transfer function is closed loop system, use the below code to obtain the response with given input

sys = tf([5],[1 1 5])
%sys = feedback(sys,1)
t = 0:0.1:1;
u = 1+t.^2;
lsim(sys,u,t)

This gives the systems response for the input r(t).

The response obtained is

2. If the given Transfer function is closed loop system, then use the below code to obtain the system response fro given input

sys = tf([5],[1 1 5])
sys = feedback(sys,1)
t = 0:0.1:1;
u = 1+t.^2;
lsim(sys,u,t)

The resposne obtained is:

Here we can change the time for which we want the simulation to be run by updating 't' value range in the code.

Add a comment
Know the answer?
Add Answer to:
Obtain the response of the closed loop system using MATLAB: C(s)/R(s) = 5 / (s^2 +...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT