Is it possible to do the following code without k loop? A=rand(5,4,10) B=rand(5,4,10) C=zeros(4,4,10) for k=1:10 X=matrix(A(:,:,k),5,4) Y=matrix(B(:,:,k),5,4) C(:,:,k)=Y'*X end Best regards, Masahiro Fujimoto -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html