tspan = linspace(0,15,201);y0=[0 15];[t, y] = ode15s(f,tspan,y0);function dydt=f(t,y)dydt(1)=1.57-.00145 *y(1)*y(2);dydt(2)=7.30-.53*y(1)-.00145*y(1)*y(2);plot(t,y);end
MATLAB: New Matlab user. My equations say I do not have enough inputs. How to correct this
MATLABode15s
Best Answer