| Gauges Blockset™ | ![]() |
| On this page… |
|---|
The Percent Indicators library contains controls that are designed to display percentages and ratios. The Generic Percent and Simple Light Blue blocks are probably the most useful blocks in this library. By default, these blocks reflect scalar input values between 0 and 100 by coloring a corresponding segment of a linear scale. By customizing the blocks, you can also have them display an input value X between m and M as the percentage 100 * ((X - m) / (M - m)).
The table below lists some common ways to customize a block in the Percent Indicators library, using its ActiveX Control Properties dialog box.
To display multiple regions on a single block, see the customizations in the table below. To learn how to control multiple regions simultaneously, see Controlling Multiple Graphical Elements.
| Task | Description |
|---|---|
| Add another region to the display | On the Portions panel, increase the Portions property. The ID of the new region is the Portions property value minus one. To specify properties of the new region, set PortionID to that ID and then set the remaining properties on the dialog box panel accordingly. Note that the DigitalStyle and DigitalFormat properties apply to all regions on the block. |
| Delete the most recently added region from the display | On the Portions panel, decrease the Portions property. This deletes all properties associated with the region, such as its color. |
![]() | On Off Gauges | Strip Chart | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |