To solve the differential equations in MATLAB use one of the ode solvers
You can also simulate the system in Simulink using a state space system block if you are more familiar with Simulink.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!