- #1
sbashrawi
- 55
- 0
Homework Statement
Hi guysI want to know how to plot time responce for optimal tracking problem.
I have the following information
state equation
dx = AX+Bu
Y =Cx
want to track a comand z= [z1;z2] constant
I know that we need to find the feedback gain by
sys= ss(A,B,C,D)
[K,S,E] = lqr(sys,Q,R)
the initial condition is given
closed loop matrix is given by A_closed = A - B*K
HOw can I use these information: A_cloosed, Z , initial contion to plot the time response
in matalb ?
Any help please