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
2018-12-5
0 个投票
Start by reading this documentation page
Torsten
2018-12-5
0 个投票
Solve the ODE using Euler's method, e.g., and - instead of returning the solution N - return r*N.
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!