MeshDensity: How to exactly set the number of evaluation points of fplot?

39 visualizzazioni (ultimi 30 giorni)
In the documentation, it is said under 'MeshDensity' option of 'fplot':
"Number of evaluation points, specified as a number. The default is 23. Because fplot uses adaptive evaluation, the actual number of evaluation points is greater."
This is not suitable for my work to not be able to have a fixed number of evaluation points from a plot to another.
So, is it possible to set an exact fixed number of evaluation points?

Risposta accettata

Star Strider
Star Strider il 2 Gen 2021
So, is it possible to set an exact fixed number of evaluation points?
Likely not with fplot. Since fplot plots single-variable equations, a more appropriate option would likely be to use linspace (or logspace) to create the independent variable, and then plot your independent and dependent variables.

Più risposte (0)

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by