h = uilamp()
h = uilamp(parent)
h = uilamp(..., propertyName, propertyValue)
| Parameter | Description |
|---|---|
| parent | parent container. |
| propertyName, propertyValue | name-value pairs. |
| Parameter | Description |
|---|---|
| h | UI component object. |
lmp = uilamp creates a lamp, a display-only circular indicator whose Color reflects a state.
f = uifigure('Visible', 'off', 'Name', 'Lamp', 'Position', [100 100 420 260]);
lbl = uilabel(f, 'Text', 'Ready', 'Position', [150 120 80 24]);
lmp = uilamp(f, 'Position', [235 122 20 20]);
lmp.Color = 'green';
drawnow();
f = uifigure();
lmp = uilamp(f, 'Color', 'red');
| Version | Description |
|---|---|
| 2.0.0 | initial version |