www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SpecifyTextLabelsForPieChartExample.m

    %% Specify Text Labels for Pie Chart
% Create a pie chart of vector |X| and label the slices.

% Copyright 2015 The MathWorks, Inc.


X = 1:3;
labels = {'Taxes','Expenses','Profit'};
pie(X,labels)