I'm trying to solve differential equations with MatLab and ode45 function. The question is how can I change minimal step size? I want to make it bigger to avoid too small steps. I'm tryin to do it like this:
tspan = [3, 4]; (boundaries of time line)
[t, q] = ode45('dqdt2', tspan, q0);
- t - time
- q - solution to find
- dqdt2 - my file with function
- q0 - initial conditions
Refineparameter to 1 (defaults to 4 in ode45) - dkv