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

조회 수: 18 (최근 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