This function adds a single light object to the specified or current axes, and returns the light handle. If a light object already exists, the existing light object handle is returned. If multiple light objects exists, a warning is given, and excess lights are removed.
Cite As
Michael Kutzer (2026). Add Single Light Object (https://uk.mathworks.com/matlabcentral/fileexchange/48617-add-single-light-object), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Labels and Styling > Labels and Annotations > Annotations >
- MATLAB > Graphics > Labels and Styling > Interactions, Camera Views, and Lighting > Lighting, Transparency, and Shading >
- MATLAB > Graphics > Graphics Objects > Graphics Object Properties >
Find more on Annotations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
