Can someone help write a MATLAB code for this control systems problem?? Thanks y
ID: 2268373 • Letter: C
Question
Can someone help write a MATLAB code for this control systems problem?? Thanks you!!!!
Problem 2: In the notes the coefficient matrices of the linear model of the satellite control problem are 0 0 0 30% 20% 1/m 0 0 10 0 0 A= 0 0 0 Compute the transfer function C(Is A) B and the impulse response Ce "B for this system for the case m=1, ro-1, and ab general. You can use a symbolic computing tool in the evaluations if you wish. What can you say about the impulse response? Is it stable, unstable,...?Explanation / Answer
matlab code:
syms wo s t
A=[0 1 0 0;3*wo^2 0 0 2*wo;0 0 0 1;0 -2*wo 0 0];
B=[0 0;1 0;0 0;0 1];
C=[1 0 0 0;0 0 1 0];
I=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1];
g=C*inv(s*I-A)*B
imp=C*exp(A*t)*B
result
g =
[ 1/(s^2 + wo^2), (2*wo)/(s^3 + s*wo^2)]
[ -(2*wo)/(s^3 + s*wo^2), (s^2 - 3*wo^2)/(s*(s^3 + s*wo^2))]
imp =
[ exp(t), 1]
[ 1, exp(t)]
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.