3d plot without grid

15 ビュー (過去 30 日間)
Farzad Etemadi
Farzad Etemadi 2015 年 11 月 24 日
コメント済み: Star Strider 2015 年 11 月 25 日
To plot a 3d function z=f(x,y), Matlab 3d plot commands such as mesh(X,Y,Z) need a grid of X and Y over which Z is evaluated. What if the data to be plotted is in the form of 3-tuples:(x1, y1, z1), (x2,y2,z2), ...? Is there a function for that?
Thanks

回答 (1 件)

Star Strider
Star Strider 2015 年 11 月 24 日
See if the plot3 function does what you want. Another option is scatter3.
  2 件のコメント
Farzad Etemadi
Farzad Etemadi 2015 年 11 月 25 日
To be more specific, I need mesh of z=f(x,y), but my data is not in the form of a grid. plot3 and scatter3 commands do not create a mesh. The plots created by plot3 or scatter3 are hard to visualize as they use dots or connect all the points with lines.
Star Strider
Star Strider 2015 年 11 月 25 日
If you want to create a grid for scattered data, use one of the Scattered Data Interpolation functions.

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

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by