Increasing Edge Lines in a Surface Plot

5 ビュー (過去 30 日間)
Abdi Hassan
Abdi Hassan 2022 年 5 月 27 日
コメント済み: Abdi Hassan 2022 年 5 月 28 日
As of now, I am using three vectors with the fit function to produce a surface plot, and example code would be here:
plot(fit([x,u],z,'poly15','normalize','on'))
My problem is I would like to increase the number of edge lines on the surface plot. As of now, it is 50x50 for the x and y axis, but I would like to make it 100x100 instead.
Thank you for your assistance

採用された回答

Chris
Chris 2022 年 5 月 28 日
sf = fit([x,u],z,'poly15','normalize','on');
xpts = linspace(min(x),max(x),100);
upts = linspace(min(u),max(u),100);
[xx, uu] = meshgrid(xpts,upts);
surf(xx, uu, sf(xx,uu))
  1 件のコメント
Abdi Hassan
Abdi Hassan 2022 年 5 月 28 日
Thank you for you help; It's greatly appreciated.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by