Code covered by the BSD License  

Highlights from
5 ways to Solve IVP ODEs in MATLAB

image thumbnail

5 ways to Solve IVP ODEs in MATLAB

by

 

The scripts show 5 ways of solving IVP ODEs in MATLAB environment

dydt=compareODEsols(t, y)
function dydt=compareODEsols(t, y)
% This is a 2nd order ODE IVP example
%    3*y''+3*y'+9*y=15*t with ICs: y(0)=3, y'(0)=-2;

dydt=[y(2);-(y(2)+3*y(1))+5*t ];
return

Contact us