I HAVE THE FOLLOWING ERROR: "Error using bvparguments" HELP ME TO FIX IT
Show older comments
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 Comments
Sulaymon Eshkabilov
on 30 Dec 2022
Edited: Sulaymon Eshkabilov
on 30 Dec 2022
where is your code?
See this: how to post your question
REVATHI DEVI
on 31 Dec 2022
Torsten
on 31 Dec 2022
Not solvable. The number of ODEs must be equal to the number of boundary conditions.
REVATHI DEVI
on 3 Jan 2023
Steven Lord
on 3 Jan 2023
What is the mathematical set of equations that you're trying to solve? Post them as text or as LaTeX (using the equation editor tool, the Sigma sign in the Insert section of the toolbar) rather than posting as code.
REVATHI DEVI
on 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.
Accepted Answer
More Answers (1)
Walter Roberson
on 31 Dec 2022
0 votes
you do not initialize your global variables, so some of your calculations return empty
1 Comment
REVATHI DEVI
on 31 Dec 2022
Categories
Find more on Boundary Value Problems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!