Surface Plot, 3D plot

2 次查看(过去 30 天)
Anshul Jain
Anshul Jain 2022-12-20
回答: Voss 2022-12-20
Dear sir,
I have three variables (X, Y and Z) with different dimensions i.e., the number of X values are 5, the number of Y values are 4 and number of Z values are 20.
How to get the surface plot between them?
A word file is attached here for the reference.
Kindly help!!!
Thanks in advance

回答(1 个)

Voss
Voss 2022-12-20
X = [1.6 1.4 1.2 1 0.8]; % in terms of r
Y = [0.3 0.5 0.7 1]; % in terms of r
Z = [0.093 0.072 0.053 0.027 0.0005; ...
0.165 0.097 0.06 0.058 0.021 ; ...
0.226 0.134 0.11 0.089 0.043 ; ...
0.301 0.205 0.163 0.146 0.104 ];
surf(X,Y,Z)
xlabel('X/r')
ylabel('Y/r')
zlabel('Z')

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by