📄 huitujh2.m
字号:
load seamount
subplot(2,2,1);
plot(x,y,'.','markersize',15);
xlabel('longitude');
ylabel('latitude');
grid on
tri=delaunay(x,y);
subplot(2,2,2);
plot(x,y,'.','markersize',15);
xlabel('longitude');
ylabel('latitude');
hold on
grid on
triplot(tri,x,y,'-r'),
hold off
%figure
subplot(2,2,3);
hidden on
trimesh(tri,x,y,z)
grid on
xlabel('longitude');
ylabel('latitude');
zlabel('depth');
hidden on
%figure
subplot(2,2,4);
[xi yi]=meshgrid(210.8:.01:211.8,-48.5:.01:-47.9);
zi=griddata(x,y,z,xi,yi,'cubic');
[c h]=contour(xi,yi,zi,'b-');
clabel(c,h)
xlabel('longitude');
ylabel('latitude');
xi=211.32;yi=-48.35;
p=dsearch(x,y,tri,xi,yi);
[x(p),y(p)]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -