ode45显示错误使用 odearguments
显示 更早的评论
回答(1 个)
Varun
2023-3-20
Hello!
Seeing the syntax with which you have called the ode45 function, I think the issue is with the parameters passed. The function "volterrab" has been passed in inverted commas. But the function syntax needs a function handle as the first input argument. So, try the syntax:
[t,x]=ode45(@volterra, ts,x0);
For more information, you may refer to the following documentation:
Function Handles: https://www.mathworks.com/help/matlab/matlab_prog/pass-a-function-to-another-function.html
Hope this helps!
类别
在 帮助中心 和 File Exchange 中查找有关 常微分方程 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!