CS310 Team Lab #14
Numeric Solutions to Ordinary Differential Equations

OBJECTIVES

INTRODUCTION

Solving ODEs numerically in MATLAB uses the ode45 command, which takes a function handle as one of its arguments. Just like for fzero and integral, there are two parts to solving an ODE using ode45:

  1. define a function that computes something, in this case, the value of the derivative and
  2. write a script (or code) that sets up and calls the function, in this case ode45(), with a function handle for the function you defined.

In this team lab, you will get experience solving ordinary differential equations numerically in MATLAB and plotting their solutions.