A题作图Word文档格式.docx
《A题作图Word文档格式.docx》由会员分享,可在线阅读,更多相关《A题作图Word文档格式.docx(11页珍藏版)》请在冰豆网上搜索。
surf(X,Y,Z);
shadinginterp;
title('
城市整体地形图'
图
(2)城市等高线图
>
[X,Y,Z]=griddata(x,y,z,linspace(min(x),max(x),200)'
figure,contourf(X,Y,Z)
等高线图'
xlabel('
X'
ylabel('
Y'
(colormap(gray);
)
xi=linspace(min(x),max(x),100);
yi=linspace(min(y),max(y),100);
[xi,yi]=meshgrid(xi,yi);
zi=griddata(x,y,z,xi,yi);
ci=griddata(x,y,c,xi,yi);
color={'
k'
'
r'
y'
c'
b'
};
marker={'
+'
O'
口'
A'
P'
figure
h=surf(xi,yi,zi);
set(h,'
cdata'
ci);
colormaphsv
三维图立体(颜色条表示分类)'
)
ylabel('
colorbar
hiddenoff
holdon
fori=1:
5
loc=c==i;
plot3(x(loc),y(loc),z(loc),marker{i},'
markerfacecolor'
color{i});
end
Y+生活区O工业区口山林区A交通区P绿地区'
);
[C,h]=contourf(X,Y,Z);
set(h,'
ShowText'
on'
TextStep'
get(h,'
LevelStep'
)*2)