With the plot, it takes 5 lines of code.
Give it a go! See the documentation for ode45 for valuable and relevant information. Also see the section in the documentation for Function Basics on Anonymous Functions.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!