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

43 ビュー (過去 30 日間)
Diaa
Diaa 2021 年 1 月 2 日
回答済み: Star Strider 2021 年 1 月 2 日
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 Center および File ExchangeCalculus についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by