Documentation

lightm

Project light objects on map axes

Syntax

h = lightm(lat,lon)
h = lightm(lat,lon,PropertyName,PropertyValue,...)
h = lightm(lat,lon,alt)

Description

h = lightm(lat,lon) projects a light object at the coordinates lat and lon. The handle, h, of the object can be returned.

h = lightm(lat,lon,PropertyName,PropertyValue,...) allows the specification of any property name/property value pair supported by the standard MATLAB® light function.

h = lightm(lat,lon,alt) allows the specification of an altitude, alt, for the light object. When omitted, the default is an infinite light source altitude.

Examples

expand all

Add Light to Map

Load data.

load topo

Create map.

axesm globe; view(120,30)
meshm(topo,topolegend); demcmap(topo)

Add light, specifying surface reflectance properties and lighting mode.

lightm(0,90,'color','yellow')
material([.5 .5 1]); lighting gouraud

See Also

Was this topic helpful?