I have two matrices and I want to multiply each column of the first with the row of the second to get a matrix, something like:
for j=1:size(A,2)
c(:,:,j) = A(:,j)*B(:,j)' ;
end
A
and B
are the same size.
Is there a quick way to do this?
source
to share