Info
此问题已关闭。 请重新打开它进行编辑或回答。
What did I do wrong here?
1 次查看(过去 30 天)
显示 更早的评论
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
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!