Matlab 3d surface plot

5 ビュー (過去 30 日間)
SOURABH SANTOSH
SOURABH SANTOSH 2021 年 2 月 4 日
コメント済み: SOURABH SANTOSH 2021 年 2 月 7 日
I had 28 sample (x,y,z) value. i want to 3d surface plot. how can i do that?

採用された回答

darova
darova 2021 年 2 月 4 日
  3 件のコメント
darova
darova 2021 年 2 月 4 日
please see examples inside the link
SOURABH SANTOSH
SOURABH SANTOSH 2021 年 2 月 7 日
Thank you darova sir..it works

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

その他の回答 (1 件)

SOURABH SANTOSH
SOURABH SANTOSH 2021 年 2 月 5 日
q=[0 1 2]
q =
0 1 2
w=[4 5]
w =
4 5
[Q,W]=meshgrid(q,w)
Q =
0 1 2
0 1 2
W =
4 4 4
5 5 5
z=[1 2 3 4 5 6]
z =
1 2 3 4 5 6
Z=reshape(z,2,3)
Z =
1 3 5
2 4 6
surf(X,Y,Z)
Error using surf (line 71)
Data dimensions must agree.
please suggest what to do

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by