Surface Plot, 3D plot
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Voss
on 20 Dec 2022
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')
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!