Effacer les filtres
Effacer les filtres

I HAVE THE FOLLOWING ERROR: "Error using bvparguments" HELP ME TO FIX IT

14 vues (au cours des 30 derniers jours)
REVATHI DEVI
REVATHI DEVI le 30 Déc 2022
Modifié(e) : Torsten le 3 Jan 2023
Error using bvparguments (line 108)
Error in calling BVP4C(ODEFUN,BCFUN,SOLINIT):
The derivative function ODEFUN should return a column vector of length 8.
Error in bvp4c (line 122)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in second (line 25)
sol =bvp4c(@shootode,@shootbc,solinit);
  8 commentaires
REVATHI DEVI
REVATHI DEVI le 3 Jan 2023
yes sir are you there sir
my question is i have 7 derivative functions and 8 boundary conditions
Torsten
Torsten le 3 Jan 2023
Modifié(e) : Torsten le 3 Jan 2023
In the code you posted above, there is a third free parameter p that is to be adjusted so that all three instead of only two boundary conditions can be satisfied. Your original problem - which you deleted for some resason - did not contain such a free parameter.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 30 Déc 2022
Déplacé(e) : Jan le 30 Déc 2022
The code does not run.
  • linspace(0,infinity,40) - what is "infinity" and of course you cannot divide the interval [0, Infinity] into 40 steps.
  • The functions need trailing end statements if this is written in a single file.
  • You provide an initial value with 8 components, but as the error message tells clearly, shootode replies 7 elements only.
  1 commentaire
REVATHI DEVI
REVATHI DEVI le 31 Déc 2022
for infinity value is consider as 6 and i have 7equations and 8 boundaries that is my problem

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 31 Déc 2022
you do not initialize your global variables, so some of your calculations return empty

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by