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

17 次查看(过去 30 天)
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?

采纳的回答

Star Strider
Star Strider 2021-1-2
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by