How to write a function to calculate ODE?
Ältere Kommentare anzeigen
Write a function which for a given value of the time, current population and growth rate returns the value of the derivative for an exponential growth model:
dN/dt = rN
No idea where to start.
Antworten (2)
madhan ravi
am 5 Dez. 2018
0 Stimmen
Start by reading this documentation page
Torsten
am 5 Dez. 2018
0 Stimmen
Solve the ODE using Euler's method, e.g., and - instead of returning the solution N - return r*N.
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!