Execution of script bvp4c as a function is not supported
Show older comments
Error in bvp4c (line 5) sol = bvp4c(@bvpfcn, @bcfcn, solinit);
Answers (1)
Cris LaPierre
on 20 Jul 2022
0 votes
It appears you have created a script and saved it as bvp4c.m. This is the same name as the function you are trying to call. Since your script has precedence over the function, you are getting this error.
Change the name of your script, and your error should go away.
1 Comment
SHANKAR G
on 22 Jul 2022
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!