MATLAB: How to plot a second order non-linear ODE odeplot This is my code so far but it does not work: syms y(t) ode = .003*diff(y,t)== .003*9.8-3.048*10^-6*y- 9.0726*10^-5*y^2; cond = y(0) == 0; ySol(t) = dsolve(ode,cond) ezplot(y(t)); Best Answer I would think plotting ‘ySol(t)’ would be more interesting:syms y(t)ode = .003*diff(y,t)== .003*9.8-3.048*10^-6*y-9.0726*10^-5*y^2;cond = y(0) == 0;ySol(t) = dsolve(ode,cond)ezplot(ySol(t)); Related SolutionsMATLAB: Not able to solve an ode using dsolve Consider:syms y(t)ode = diff(y,t) == -0.127.*(-3.*(log(7e-10.*exp(0.405.*y))).*(y - 0.01)); cond1 = y(0) == 0.01;cond2 = y(0) == 1;ySol = dsolve(ode)ysol1 = dsolve(ode,cond1)ysol2 = dsolve(ode,cond2) MATLAB: Solving differential equation and assigning value to symfun Try this: t_val = vpasolve(ySol==1,t) % Symbolic Solution Related QuestionHow to solve system of 2nd order differential equations using ode45Plotting bacterial growth using odesI am solving a odeTrying to solve a 2nd order ODE discretely , that requires external input. What am I doing Wrong
Best Answer