Consider the following 2 matrices: A = 3x3x3 and B = 3x3. Is it possible to perform an element wise multiplication between each slice of A and the kernel B without using a for loop? My current implementation is as follows:
for i = 1:3
C = A(:,:,i) .* B(:,:);
end
where C is some output matrix