Three-dimensional surface rendering 3D scatter FIG.

%输入数据
A=[
176.923 87.4359 -383.59
160.563 95.493 -421.408
175.034 91.2752 -401.611
133.165 84.3038 -378.734
183.704 82.4691 -369.383
222.345 88.2759 -412.69
145.08 77.9421 -384.823
178.701 77.6623 -388.571
155.385 75.641 -383.59
230.556 80.8333 -415.556
156.667 64.5238 -356.19
167.688 63.6637 -359.399
175.668 62.908 -355.134
148.166 59.8817 -354.083
170.06 57.006 -358.323
13.8507 54.6866 -357.254
];
x=A(:,1);y=A(:,2);z=A(:,3);
scatter3(x,y,z)%散点图
figure
[X,Y,Z]=griddata(x,y,z,linspace(min(x),max(x))',linspace(min(y),max(y)),'v4');%插值
pcolor(X,Y,Z);shading interp%伪彩色图
figure,contourf(X,Y,Z) %等高线图
figure,surf(X,Y,Z);%三维曲面
figure,meshc(X,Y,Z)%剖面图
view(0,0); 
figure,meshc(X,Y,Z);%s三维曲面(浅色)+等高线
hidden off;

 

Scatter
Pseudo-color pictures
Contour FIG.

 

Three-dimensional surface (dark)

 

Three-dimensional surface (light) + contour

 

Sectional view

 

Author: QinL 

Published 144 original articles · won praise 213 · views 10000 +

Guess you like

Origin blog.csdn.net/s0302017/article/details/103845929