How do I increase the number of mesh points that bvp5c uses?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mark
am 4 Apr. 2013
Bearbeitet: Christian Chamberlayne
am 17 Sep. 2020
I'm trying to solve a 2nd order differential equation using bvp5c. It can get moderately stiff for certain parameters.
I get the following warning.
Warning: Unable to meet the tolerance without using more than 5000 mesh points. The last mesh of 892 points and the solution are available in the output argument. The maximum error is 0.00120499, while requested accuracy is 1e-07. > In bvp5c at 339
How can I increase the number of mesh points beyond 5000?
Thanks.
0 Kommentare
Akzeptierte Antwort
Jan
am 5 Apr. 2013
Bearbeitet: Jan
am 5 Apr. 2013
Please take the time to read the documentation of bvp5c. There you find the link to the function to set the options http://www.mathworks.com/help/matlab/ref/bvpset.html, where the parameter "NMax" is explained:
Maximum number of mesh points allowed when solving the BVP, ...
Of course this message has the strong meta-message, that it is recommended to read the help and doc information before asking the forum. Matlab's docs are very useful and complete, and they have a much higher quality than the manuals of other software manufacturers.
1 Kommentar
Christian Chamberlayne
am 17 Sep. 2020
Bearbeitet: Christian Chamberlayne
am 17 Sep. 2020
I also ended up here after trying to figure out the documetation.
Thank you for linking the bvpset function documetntation.
About your meta message: the max mesh size and how to change it is not particularly obvious on the bvp4c (and bvp5c) documentation. Even knowing to go look up the bvpset function is not imediately obvious from the bvp4c documentaion.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Boundary Value Problems finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!