Represent the total mask usage data (for all counties) in a form of a pie chart

1 回表示 (過去 30 日間)
Victor
Victor 2022 年 10 月 5 日
回答済み: dpb 2022 年 10 月 5 日
  • Represent the total mask usage data (for all counties) in a form of a pie chart and a frequency plot.
My pie chart is not running, any idea why?
X = [92 85 84 83 83 83 77 77 71 63 59 57 54 35 19 10 9 4 2 2 2 ];
explode = {};
labels = {'Philippines', 'Mexico', 'Spain', 'Hong Kong', 'Italy', 'Thailand', 'Japan', 'Malaysia', 'Vietnam', 'Germany', 'U.S.', 'Taiwan', 'France', 'Canada', 'U.K.', 'Australia', 'Netherlands', 'Norway', 'Denmark', 'Finland', 'Sweden'};
pie(X,explode,labels)

回答 (1 件)

dpb
dpb 2022 年 10 月 5 日
explode=[];
to not use the parameter; the empty cell array doesn't work, the empty double does; a logical array is expected.

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by