unable to understand and clear the erroe

1 vue (au cours des 30 derniers jours)
alfunsa Prathia
alfunsa Prathia le 28 Mai 2021
Commenté : alfunsa Prathia le 1 Juin 2021
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);

Réponse acceptée

Walter Roberson
Walter Roberson le 28 Mai 2021
solinit uses 10 boundary conditions, but your function returns a column vector with 11 entries. Those numbers must match.
  3 commentaires
Walter Roberson
Walter Roberson le 28 Mai 2021
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 le 1 Juin 2021
Thank you Mr.Walter ,I could resolve my problem.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by