Problem with plotting a function on a specified domain
55 views (last 30 days)
I am trying to plot the solution of a system of ODEs. The code is:
tspan = [0 10];
z0 = [0.01 0.01 0.01 0.01];
[t,z] = ode45(@(t,z) odefun3(t,z), tspan, z0);
Why the output is plotted on the interval [0,60] and not on [0,10], as in the code ?