MATLAB Answers

how to add text to a pie chart?

how to add text to a pie chart?... i need to mention monday, tuesday etc., on a pie chart?




1 Answer

Answer by Azzi Abdelmalek
on 10 May 2013
 Accepted answer

days= {'Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'};
percentage=[100/7 100/7 100/7 100/7 100/7 100/7 100/7] 
pie(percentage, days);


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!