How to write a function to calculate ODE?

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.

回答 (2 件)

madhan ravi
madhan ravi 2018 年 12 月 5 日

0 投票

Start by reading this documentation page
Torsten
Torsten 2018 年 12 月 5 日

0 投票

Solve the ODE using Euler's method, e.g., and - instead of returning the solution N - return r*N.

カテゴリ

タグ

質問済み:

2018 年 12 月 5 日

回答済み:

2018 年 12 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by