Computing Solutions of Ordinary Differential Equations
Computing Solutions of Ordinary Differential Equations
● The logic will remain the same only that we will mainly use vectors instead of
scalars.
● But good enough MATLAB makes working with matrices almost the same as
working with scalars. In fact, according to MATLAB, a scalar is a vector that
has exactly one element.
● If we attempt to write out our functions to mimic the ode45 solver that comes
with the software, then we are restricted to using only 3 inputs: the ode
function, the tspan, and Y0.
● The example below shows how we can pull off this using the runge kutta
fourth-order method