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