unable to understand and clear the erroe

조회 수: 1 (최근 30일)
alfunsa Prathia
alfunsa Prathia 2021년 5월 28일
댓글: alfunsa Prathia 2021년 6월 1일
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);

채택된 답변

Walter Roberson
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
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)
alfunsa Prathia
alfunsa Prathia 2021년 6월 1일
Thank you Mr.Walter ,I could resolve my problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Boundary Value Problems에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by