ODE Initial value problem

5 views (last 30 days)
SilenceSSS
SilenceSSS on 8 Mar 2017
Answered: Star Strider on 8 Mar 2017
Solve the following differential equation on t∈[0,5]
dy/dt=-10.8*y;
y(0)=1;

Answers (1)

Star Strider
Star Strider on 8 Mar 2017
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.

Community Treasure Hunt

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

Start Hunting!