Info
This question is closed. Reopen it to edit or answer.
What did I do wrong here?
2 views (last 30 days)
Show older comments
u0 = 5000;
lambda = 0.03;
pm = 9000;
k = 100;
f = @(p) lambda*p*(1-p/pm)-k
pf = RK4(f,u0,10,100)
0 Comments
Answers (1)
Gifari Zulkarnaen
on 5 Jul 2020
In your function RK4 line 8 to 11, you have two inputs for f function while the f function has only one input value, thus "too many input arguments" error occured.
2 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!