How to plot pie chart in Matlab GUI using buttons?
古いコメントを表示
Hi again,
I have 3 buttons named "Weekone", "Month" "Year" - I want to plot 3 pie charts using axes when the buttons are pressed.
Here's my code below:
function weekone_Callback(hObject, eventdata, handles)
X = categorical ({'Present','Absence'});
explode = {'Absence'};
Labels = {'91%','9%'};
axes(handles.axes3);
pie(X,explode,labels);
I get the following error:
Unrecognized function or variable 'labels'.
Error in myprofile>weekone_Callback (line 281)
pie(X,explode,labels);
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Pie Charts についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!