Question

MATLAB code. Open loop TF D(s) Matlab Code: a=conv([1 0], [1 1]) b=conv([1 5], [1 10])...

MATLAB code.

Open loop TF D(s)

Matlab Code:

a=conv([1 0], [1 1])

b=conv([1 5], [1 10])

D=conv(a,b)

N=1

sys=tf(N, D)

rlocus(sys)

roots([4 16*3 65*2 50])

OUTPUT Matlab:

a =

1 1 0


b =

1 15 50


D =

1 16 65 50 0


N =

1


sys =

1
----------------------------
s^4 + 16 s^3 + 65 s^2 + 50 s

Continuous-time transfer function.


ans =

-8.2399
-3.3005
-0.4596

Question: How to change this code to closed loop TF with:

1 + K * s + 1/s*(s - 1)*(s + 6)=0

with ability to change K as 5, 7.5 or 10?

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

Here is the MATLAB Script that will ask you to enter the K Value and it will output the root locus plot based on your K value. Here I plot for three different values of K

Please thumbs up

Add a comment
Know the answer?
Add Answer to:
MATLAB code. Open loop TF D(s) Matlab Code: a=conv([1 0], [1 1]) b=conv([1 5], [1 10])...
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
Active Questions
ADVERTISEMENT