www.gusucode.com > map 案例源码 matlab代码程序 > map/Project3DShadedSurfaceWithLightingOnMapAxesExample.m

    %% Project 3-D Shaded Surface with Lighting on Map Axes
% 
%%
% Project a 3-D shaded surface with lighting on the current map axes. Note
% that in the following example, the graticule is the size of |topo| (180 x
% 360) and is rendered in 3-D, so it might take a while. It is also memory
% intensive.
figure('Color','white')
load topo
axesm miller
axis off; 
framem on; 
gridm on;
[lat,lon] = meshgrat(topo,topolegend);
surflm(lat,lon,topo)
colormap(gray)
load coastlines
plotm(coastlat,coastlon,max(topo(:)),...
		'LineWidth',1.5,'Color','yellow')