Gauges Blockset 2.0.5
Pie Chart/Custom S-Function
This example model enables you to control four portions of a pie chart independently using four sources. The model uses the Dynamic Pie block. Internally, the model uses an M-file S-function to drive the Dynamic Pie block.
To open this example, enter gauges_pie in the MATLAB® Command Window. Change the values of the Constant blocks to alter the composition of the pie chart. Note that because Constant is a source block, the simulation will pause while the block dialog box is open. You must close the dialog by clicking OK, which will resume the simulation and allow you to see the result of your changes.
Store