In this lecture observer based feedback controller is designed in matlab Simulink
For complete design procedure Watch Video
https://youtu.be/Lax3etc837U
5. A=[0 1 0
0 0 1
24 14 -1];
B=[0
0
1];
C=[2 -1 1];
%first we will check the Controllability and Observability
P=ctrb(A,B);
if rank(A)==rank(P)
disp('System is controllable')
else
disp('System is not controllable')
end
Write this code in m file and run it
6. Q=obsv(A,C);
if rank(A)==rank(Q)
disp('System is Observable')
else
disp('System is not Observable')
end
poles=[-5+5*1i -5-5*1i -10]; %desired poles
K=-acker(A, B , poles) %state feedback controller gain matrix
obpoles=[-20 -20 -20]
l=acker(A', C' , obpoles) %state feedback observer gain matrix
L=l'
7. AFTER YOU RUN THE M FILE OPEN SIMULINK
AND DESIGN YOUR OBSERVER LIKE THIS
https://youtu.be/Lax3etc837U
8. • Follow this link to watch video on how to design the observer
• https://youtu.be/Lax3etc837U