Pie Chart/Custom S-Function

This model shows how to use a Dynamic Pie block driven by a MATLAB S-function to control a four-portion pie chart.

To open this example, enter gauges_pie in the MATLAB® Command Window. Change the values of the four independent sources (the Constant blocks) to alter the composition of the pie chart.

Was this topic helpful?