unable to understand and clear the erroe
1 次查看(过去 30 天)
显示 更早的评论
Error using bvparguments (line 108)
Error in calling BVP4C(ODEFUN,BCFUN,SOLINIT):
The derivative function ODEFUN should return a column vector of length 10.
Error in bvp4c (line 130)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in rotating_Disk (line 20)
sol = bvp4c(@rotode,@rotbc,solinit);
0 个评论
采纳的回答
Walter Roberson
2021-5-28
solinit uses 10 boundary conditions, but your function returns a column vector with 11 entries. Those numbers must match.
3 个评论
Walter Roberson
2021-5-28
You use up to f(14) in the code, so you need to pass in at least 14 initial conditions, and you need to return a column vector of 14 elements (instead of 10)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!