Findind repeated elements in a cell of a Table and report number of cases
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
I have a table for which I would like to find how many times a certain item is repeated (for one column [variable] only at a time), and have the number of times it happens (sorted optimally). What is the way around this? 
0 comentarios
Respuestas (1)
  KSSV
      
      
 el 18 de Mayo de 2021
        Let a be column. 
xbins = unique(a);
[counts,centres] = hist(a,xbins);
R = [centres counts']
1 comentario
Ver también
Categorías
				Más información sobre Language Fundamentals en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

