| Mapping Toolbox | ![]() |
Project light objects on the current map axes
Syntax
h = lightm(lat,lon) h = lightm(lat,lon,PropertyName,PropertyValue,...) h = lightm(lat,lon,alt) h = lightm(lat,lon,alt,PropertyName,PropertyValue,...)
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/value pair supported by the standard MATLAB light command.
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
load topo axesm globe; view(120,30) meshm(topo,topolegend); demcmap(topo) lightm(0,90,'color','yellow') material([.5 .5 1]); lighting phong
See Also
light |
Create light (see online MATLAB Function Reference) |
lightmui |
GUI to control position of lights on a globe or 3D map |
| legs | lightmui | ![]() |