How to draw the pole of the closed-loop system based on LQR

2 views (last 30 days)
X ̇=AX+Bu
A=[0 1 0 0;0 0 1 0;-3 1 2 3;2 1 0 0]
B=[1 0;2 1;3 2;4 3]
Q=diag([1 2 3 4])
R=eye(2)
[K S P]=lqr(A B Q R)
now I should plot the curves for each state of the closed loop system.
but if I use ss,I don't know C and D;if I use tf,I I don't know the specific numerator and denominator
What instructions should I use ?
Thank you very much!
  1 Comment
mahmoud
mahmoud on 13 Dec 2021
Difine your C, and D matrices then use the following code
>> sys_cl = ss((A - B*K),B,C,D);
>> pzmap(sys_cl)

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!