3-D shaded surface with lighting on
h = surflm(...)
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
a light source vector,
s, and a vector of reflectance
k. For more information on
see the help for
h = surflm(...) returns
a handle to the surface object.
Display 3-D Shaded Surface with Lighting
Display a 3-D shaded surface with lighting on a map. To do this, first load elevation raster data and a geographic cells reference object. Get the coordinates of coastlines.
load topo60c [topo60c,topo60cR] = geocrop(topo60c,topo60cR,[-90 90],[-180 180]); load coastlines
Create a map using a Miller projection. Remove the background by calling
axesm miller axis off
Create a latitude-longitude mesh from the raster using the
geographicGrid function. Then, display the elevation data as a shaded surface with lighting. Apply a grayscale colormap.
[lat,lon] = geographicGrid(topo60cR); surflm(lat,lon,topo60c) colormap(gray)
Display the coastlines over the surface.
surflm is like
except that it shades the monochrome map surface with a light source,
and the only allowed graticule is the size of the data matrix.
Introduced before R2006a