main.m521 chars24 lines
You can call this function and pass in the appropriate inputs. For example:
main.m105 chars7 lines
This will give you the time vector t
and state vector y
for the ODE dy/dt = 3t - 10y
with initial condition y(0) = 0
and time range t=0
to t=10
with a time step size of dt = 0.1
.
gistlibby LogSnag