Hello, I am trying to solve the vdp equation for the case where mu=1.
I am not able to obtain the solution. The error is that the vector returned by the differential equation and the one returned by the initial conditions do not have the same dimensions.
Any help would be great!
Here is my code:
f=@(t,Y) [(1-x^2)*Y(2); -Y(1)]
conds= [cond1, cond2]
tspan= [0 10]
[t,ylim]= ode45(f,tspan, conds)