How to vectorize double sum
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Esegboria Osarhemen
 el 9 de Feb. de 2019
  
    
    
    
    
    Comentada: Esegboria Osarhemen
 el 9 de Feb. de 2019
            Please how can i vectorize this double sum
N=4
x=randn(3,N);
for i=1:N-1
    for j=2:N
        if j>i
            a=x(:,i)-x(:,j)
        end
    end
end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Loops and Conditional Statements 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!

