divide the entries in the column by entries from another column
    18 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Turbulence Analysis
 el 8 de Abr. de 2022
  
    
    
    
    
    Comentada: Turbulence Analysis
 el 11 de Abr. de 2022
            Hi,
I have five arrays lets say A, B , C , D, E of size 100x 3.
Here, For instance, I have to divide entries in the second column of A by sum of entries in the second column of A, B , C , D , E
Something like this 
AA = A (:,2)/ ( A(:,2) + B(:,2) + C(:,2) + D(:,2) + E(:,2))
0 comentarios
Respuesta aceptada
  Voss
      
      
 el 8 de Abr. de 2022
        Use element-wise division ( ./ ) and you'll have it:
AA = A(:,2) ./ ( A(:,2) + B(:,2) + C(:,2) + D(:,2) + E(:,2) )
Más respuestas (0)
Ver también
Categorías
				Más información sobre Logical 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!

