h = uigauge()
h = uigauge(parent)
h = uigauge(..., propertyName, propertyValue)
| Parameter | Description |
|---|---|
| parent | parent container. |
| propertyName, propertyValue | name-value pairs. |
| Parameter | Description |
|---|---|
| h | UI component object. |
g = uigauge(parent, style) creates a display-only gauge: styles 'circular' (default), 'linear', 'ninetydegree', 'semicircular'. Properties: Value, Limits, ScaleColors/ScaleColorLimits, ticks, Orientation or ScaleDirection depending on the style.
f = uifigure('Visible', 'off', 'Name', 'Gauges', 'Position', [100 100 520 320]);
g = uigauge(f);
g.Position = [90 70 180 180];
g.Value = 75;
lg = uigauge(f, 'linear');
lg.Position = [310 145 150 40];
lg.Value = 45;
drawnow();
f = uifigure();
g = uigauge(f, 'Value', 75);
lg = uigauge(f, 'linear', 'Orientation', 'vertical');
| Version | Description |
|---|---|
| 2.0.0 | initial version |