www.gusucode.com > map 案例源码 matlab代码程序 > map/ContourTopographyAndBathymetryOfSouthAsiaExample.m
%% Contour topography and bathymetry of South Asia % This example shows how to contour in a map axes the topography and % bathymetry of South Asia and the northern Indian Ocean with a contour % interval of 500 meters. %% % Load topo. % Copyright 2015 The MathWorks, Inc. load topo latlim = [ 0 50]; lonlim = [35 115]; [Z, refvec] = maptrims(topo, topolegend, latlim, lonlim); figure('Color','white') axesm('lambertstd','MapLatLimit', latlim, 'MapLonLimit', lonlim) tightmap; axis off contour3m(Z,refvec,'black','LevelStep',500) %% % Add the geoid as a surface and set the colormap. geoshow(Z,refvec,'DisplayType','surface') demcmap(Z) %% % Add a title. title({'South Asia Topography and Bathymetry', ... 'with 500 m Contours'}); %% % View in 3-D set(gca,'DataAspectRatio',[1 1 40000]) view(3)