Hi,
I want to multiply every element in A[NxN] by every value in B[1xn] to get C[NxNxn]
Current code:
for i = 1:nc(:,:,i) = b(i) * a(:,:)end
Is it possible to do this without the for loop to make it run faster?
Many thanks,
element matrix multiplication
for i = 1:nc(:,:,i) = b(i) * a(:,:)end
Best Answer