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

1 view (last 30 days)
  • 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)

Answers (1)

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

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!