フィルターのクリア

3D x,y,z surface plot

1 回表示 (過去 30 日間)
Muhammad Choudhury
Muhammad Choudhury 2021 年 11 月 24 日
コメント済み: Muhammad Choudhury 2021 年 11 月 24 日
I already have X,Y,Z arrays:
x =
1.0000
1.2500
1.5000
1.2500
1.5000
1.7500
y=
1.0000
1.0000
1.0000
1.5000
1.5000
1.5000
z =
0.7583
1.2413
1.3555
1.3022
1.4160
1.5195
How can I get a plot that looks similar to this?

採用された回答

Yusuf Suer Erdem
Yusuf Suer Erdem 2021 年 11 月 24 日
Hi Muhammad, try these codes below please. Good luck.
X=[1.000, 1.250, 1.500, 1.250, 1.500, 1.750]';
Y=[1.000, 1.000, 1.000, 1.500, 1.500, 1.500]';
Z=[0.758, 1.241, 1.355, 1.302, 1.416, 1.519]';
Z = [X Y Z];
surf(Z); shading('interp');
xlabel('X'); ylabel('Y'); zlabel('f(X,Y)');
  1 件のコメント
Muhammad Choudhury
Muhammad Choudhury 2021 年 11 月 24 日
Perfect! Thank you

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

その他の回答 (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