creating pie chart from dataset

hi, i am trying to creating a pie chart using my dataset imported from excel. i have 82 people who fall into 3 categories; 41 normal, 30 sleeping disorder, 11 psychphysilogical. i want to create a pie chart using the information.
name,n,ss,pp
Normal01 1 0 0
Normal02 1 0 0
Normal03 1 0 0
Normal04 1 0 0
Normal05 1 0 0
Normal06 1 0 0
Normal07 1 0 0
Normal08 1 0 0
Normal09 1 0 0
Normal10 1 0 0
Normal11 1 0 0
Normal12 1 0 0
Normal13 1 0 0
Normal14 1 0 0
Normal15 10 0
Normal16 1 0 0
Normal17 1 0 0
Normal18 1 0 0
Normal19 1 0 0
Normal20 1 0 0
Normal21 1 0 0
Normal22 1 0 0
Normal23 1 0 0
Normal24 1 0 0
Normal25 1 0 0
Normal26 1 0 0
Normal27 1 0 0
Normal28 1 0 0
Normal29 1 0 0
Normal30 1 0 0
Normal31 1 0 0
Normal32 1 0 0
Normal33 1 0 0
Normal34 1 0 0
Normal35 1 0 0
Normal36 1 0 0
Normal37 1 0 0
Normal38 1 0 0
Normal39 1 0 0
Normal40 1 0 0
Normal41 1 0 0
Sleep_State_Misperception01 0 1 0
Sleep_State_Misperception02 0 1 0
Sleep_State_Misperception03 0 1 0
Sleep_State_Misperception04 0 1 0
Sleep_State_Misperception050 1 0
Sleep_State_Misperception06 0 1 0
Sleep_State_Misperception07 0 1 0
Sleep_State_Misperception08 0 1 0
Sleep_State_Misperception09 0 1 0
Sleep_State_Misperception10 01 0
Sleep_State_Misperception11 0 1 0
Sleep_State_Misperception12 0 1 0
Sleep_State_Misperception13 0 1 0
Sleep_State_Misperception14 01 0
Sleep_State_Misperception15 0 1 0
Sleep_State_Misperception16 0 1 0
Sleep_State_Misperception17 0 1 0
Sleep_State_Misperception18 0 1 0
Sleep_State_Misperception19 0 1 0
Sleep_State_Misperception20 0 1 0
Sleep_State_Misperception21 0 1 0
Sleep_State_Misperception22 0 1 0
Sleep_State_Misperception23 0 1 0
Sleep_State_Misperception24 0 1 0
Sleep_State_Misperception25 0 1 0
Sleep_State_Misperception26 0 1 0
Sleep_State_Misperception27 0 1 0
Sleep_State_Misperception28 0 1 0
Sleep_State_Misperception29 0 1 0
Sleep_State_Misperception30 0 1 0
Psychophysiological01 0 0 1
Psychophysiological02 0 0 1
Psychophysiological03 0 0 1
Psychophysiological04 0 0 1
Psychophysiological05 0 0 1
Psychophysiological06 0 0 1
Psychophysiological07 0 0 1
Psychophysiological08 0 0 1
Psychophysiological09 0 0 1
Psychophysiological10 0 0 1
Psychophysiological11 0 0 1

2 个评论

i have but it doesnt explain how to do it with a dataset. only for an x variable

请先登录,再进行评论。

回答(1 个)

Prabhan Purwar
Prabhan Purwar 2020-11-12

0 个投票

Hi,
Have a look at the following links:
It would be great if you could attach your implementation along with dataset, it helps us to sugget something more specific.
Thanks

类别

Community Treasure Hunt

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

Start Hunting!

Translated by