Tools

The following MATLAB® scripts were provided to students in the course.

Sample Simulation Scripts

Simulation Subroutine (M)
This is a function script that generates the derivatives of the state variables. It is called repeatedly by ode23 and so should be efficient.

Main Script (M)
This is the MATLAB® program that runs the simulation.