Counting the maximum occurrence of an element in 3d matrix ?
    1 visualización (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Jitesh Dadich
 el 30 de Ag. de 2019
  
    
    
    
    
    Comentada: madhan ravi
      
      
 el 5 de Sept. de 2019
            I have a matrix of dimensions (61x61x122) or (lat,lon,days), which has 0 and 1 values for random days.
I want to calculate the value of maximum occurrence of 1 for each grid (lat,lon).  
0 comentarios
Respuesta aceptada
  madhan ravi
      
      
 el 30 de Ag. de 2019
        sum(3dmatrix==1,[1,2])
% for older versions
sum(sum(3dmatrix==1,2),1)
4 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Resizing and Reshaping Matrices 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!

