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!