clctspan = (0:0.25:100);y0 = [1376000000,10,0];[t,y] = ode45(@(t,y)[-3.6*10^-9*y(1)*y(2)+0*y(3);-3.6*10^-9*y(1)*y(2)-0.5*y(2);0.5*y(2)-0*y(3)],tspan,y0);plot(t,y(:,1),'b',t,y(:,2),'r',t,y(:,3),'g')
MATLAB: Not getting expected graph. Only straight lines are coming but there should be curve .
2dgraphMATLABmatlab functionodeode45plot
Best Answer