Plotting input and output signals of a servomechanism using MATLAB

90 Views Asked by At

I have the servomechanism system illustrated below.

servo

The input is voltage $V$ and the output is angle $\theta_L$. How can I plot $V(t)$ and $\theta_L(t)$ in MATLAB?

The equations of the system is shown below. $$\dot{\omega}_L=-512θ_L-25θ_M-10\omega_L$$ $$\dot{\omega}_M=V-10\omega_M-128θ_L-6θ_M $$ $$$$

Hence,

$$ \theta_L''=-512\theta_L+25\theta_M-10\theta_L' $$ $$\theta''_M=V-10\theta'_M+128\theta_L-6\theta_M $$