
ORDINARY DIFFERENTIAL EQUATIONS (ODE)
MATLAB provides functions to solve a wide variety of problems involving
differential equations. This section, however, will focus on MATLAB ODE
functions to address initial value problems involving ordinary differential
equations, which are common in chemical engineering studies.
The ode23() and ode45() Functions
These functions use the one-step Runge-Kutta (RK) method for 2
nd
to 5
th
order differential equations. The
ode23() is used for problems where low
accuracy results are acceptable, while
ode45() provides results with moderate
accuracy.
It must be remembered ...