Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

surflm

3-D shaded surface with lighting on map axes

Syntax

surflm(lat,lon,Z)
surflm(latlim,lonlim,Z)
surflm(...,s)
surflm(...,s,k)
h = surflm(...)

Description

surflm(lat,lon,Z) and surflm(latlim,lonlim,Z) are the same as surfm(...) except that they highlight the surface with a light source. The default light source (45 degrees counterclockwise from the current view) and reflectance constants are the same as in surfl.

surflm(...,s) and surflm(...,s,k) use a light source vector, s, and a vector of reflectance constants, k. For more information on s and k, see the help for surfl.

h = surflm(...) returns a handle to the surface object.

Examples

collapse all

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')

Tips

surflm is like surfm, except that it shades the monochrome map surface with a light source, and the only allowed graticule is the size of the data matrix.

See Also

Introduced before R2006a

Was this topic helpful?