B20EE004 CS Lab 5
B20EE004 CS Lab 5
Objective
The design objective is to find the feedback matrix k such that the
closed-loop system is stable.
Theory
Calculations
Codes
Finding K.
A=[0 1 0 0; 16.3106 0 0 0; 0 0 0 1; -1.0637 0 0 0];
tspan = [0 10];
[t,x] = ode23(@model1, tspan, [0,0,-4.039, 4.039]);
plot(t,x);
Results
Conclusion
If the determinant of the controllability matrix is not equal to 0 then the system is
completely controllable and we find the state feedback gain matrix using pc matrix. Which
can be calculated using p1 matrix. This p1 matrix is obtained by the matrix multiplication of
[0 0 0 1] and Qc-1 matrix.