pie
Pie chart.
Syntax
Section titled “Syntax”h = pie(x)h = pie(x, e)h = pie(x, e, l)Description
Section titled “Description”Draws a pie chart of values x (normalized so they sum to 1). Optional e is a logical vector that explodes (offsets) selected slices; optional l provides text labels.
Examples
Section titled “Examples”pie([3 1 0.5 2.5 2])pie([3 1 0.5 2.5 2], [0 1 0 0 0], {'a','b','c','d','e'})