how can i show that each name own different numbers with chart ?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    mehmet salihi
 il 7 Gen 2022
  
    
    
    
    
    Commentato: mehmet salihi
 il 8 Gen 2022
            Hi friends,
I would like to make three names, John , Mike and lissa.
John own the numbers 5,9,18,51,8
Mike own the numbers 1,2,3,7
Lissa own the numbers 6,88
I want and try to show these in graph. pie chart or or bar chart.
0 Commenti
Risposta accettata
  Cris LaPierre
    
      
 il 7 Gen 2022
        There are a lot of ways. They just require some creativity. Here is one approach.
names = categorical(["Mike","Mike","Mike","John","Lissa","Mike","John","John","John","John","Lissa"]);
nums = [1,2,3,5,6,7,8,9,18,51,88];
G = findgroups(names);
gscatter(G,nums,names)
xticks(unique(G))
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Pie Charts in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


