フィルターのクリア

3D surface plot question

1 回表示 (過去 30 日間)
tarsis
tarsis 2014 年 7 月 21 日
コメント済み: Star Strider 2014 年 7 月 21 日
Hi, I would like to plot the following data as a 3D plot (showing just the first column), where 1st column is X, 2nd is Y and 3rd is Z. Does anybody know how would I do that?
0.66455 -0.03190 14.50000
Thanks
Tarsis

採用された回答

Star Strider
Star Strider 2014 年 7 月 21 日
編集済み: Star Strider 2014 年 7 月 21 日
For your data, I would use the scatter3 function. If you want to do a surface fit, see the documentation for Scattered Data Interpolation.
  3 件のコメント
Star Strider
Star Strider 2014 年 7 月 21 日
My pleasure!
For scatter3, you define them exactly that way:
scatter3(X, Y, Z)
See the documentation for scatter3 (that I provided a link to in my original Answer) for details. You can change the marker type and other options.
If you want a bit more relevant 3D representation (still discrete data and not a surface), you can also use the stem3 function. You would call it the same way:
stem3(X, Y, Z)
Star Strider
Star Strider 2014 年 7 月 21 日
I didn’t know it was in a table. Use the table2array function.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by