[ Team LiB ] Previous Section Next Section

Module 3. Ordinary Differential Equations

MATLAB provides several powerful approaches to integrating sets of initial-value, ordinary differential equations. In this module, we will discuss two approaches: using functions called by various ode routines from a MATLAB command window or script file, and using functions called by a block from a SIMULINK diagram.

After reviewing this module, the reader should be able to do the following:

  • Write a basic function file containing differential equations to be integrated by MATLAB ode routines

  • Write a more advanced function file, with parameters based through an argument list and containing differential equations to be integrated by MATLAB ode routines

  • Write a function (more specifically, an S-function) file containing differential equations to be integrated by SIMULINK

  • Generate the SIMULINK block diagram containing an S-function block

The sections of this module are as follows:

M3.1 MATLAB ode—Basic

M3.2 MATLAB ode—Options

M3.3 SIMULINK sfun (.mdl Files)

M3.4 SIMULINK sfun (.mdl Files)—Advanced

M3.5 Summary

    [ Team LiB ] Previous Section Next Section