www.gusucode.com > map 案例源码 matlab代码程序 > map/DisplayWorldMapWithColormapExample.m
%% Display World Map with Colormap % This example shows how to display a world map with a colormap % representing contour intervals in meters. %% % % Copyright 2015 The MathWorks, Inc. load topo R = georasterref('RasterSize', size(topo), ... 'Latlim', [-90 90], 'Lonlim', [0 360]); figure('Color','white') worldmap(topo, R) contourfm(topo, R); contourcmap('jet', 'Colorbar', 'on', ... 'Location', 'horizontal', ... 'TitleString', 'Contour Intervals in Meters');