What did I do wrong here?
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论


u0 = 5000;
lambda = 0.03;
pm = 9000;
k = 100;
f = @(p) lambda*p*(1-p/pm)-k
pf = RK4(f,u0,10,100)

0 个评论
回答(1 个)
Gifari Zulkarnaen
2020-7-5
0 个投票
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.
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!