Use ode45 to overlay plots of solutions to this differential equation with y (0) = c for c ranging from 0 to 1 in steps of 0:1.
equation: 5*y*(1-y)-(1+(1/2)*sin(2*pi*t));
Attempted code:
syms y(t);for c = 0:0.1:1 f = @(t, y) 5*y*(1-y)-(1+(1/2)*sin(2*pi*t)); [t,y] = ode45(f, [0,0], c)endError:Error in ode45 (line 115) odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);Error in Project_3 (line 33) [t,y] = ode45(f, [0,0], c);
If I change the 2nd 0 to 1 in the ode45 it works but my question asks for it at y(0).
Best Answer