How do I solve an ordinary differential equation in matlab and plot the numerical and analytical solution for it?

I have a differential equation and I want to solve it and also plot the numerical and analytical solution. How can I do that in MATLAB?

1 Comment

What have you tried already? If you haven't, then start by searching for ode solvers in the MATLAB documentation. Look for ODE45 to start with.

Sign in to comment.

Answers (0)

Asked:

M
M
on 5 Sep 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!