In this question, we will use MATLAB to convert state-space models to transfer function models and vice versa. Provide the MATLAB code and outputs (as code listings). (a) Consider the following linear state-space model:
x^(˙)(t)=[[-1,-3],[2,-4]]x(t)+[[0],[1]]U(t),Y(t)=[[1,-1]]x(t)
Convert this state-space representation into a transfer function using MATLAB's ss2tf function. (5 points) (b) Consider the transfer function:
G(s)=(s+3)/(s^(2)+5s+10)
Convert it to state-space form using MATLAB's tf2ss function. (5 points)