Suppose I have a matrix A=rand(2,14,24) and a vector x=10*ones(1,14)
I want element wise multiplication of A and x, such that B(i,j,k)=A(i,j,k)*x(j) for all j=1,2,..14. I want to be able to do this without running a loop. What is the most efficient way to do this in matlab?