MATLAB: Matrix multiplication element wise

.simulink

I have two matrices A and B of the order 49*49 each. I want to generate third matrix C whose elements are product of individual elements of A and B (not matrix multiplication)
Like C(i,j) = A(i,j)*B(j,i). What could be the matlab command for this.
Thanks in advance..

Best Answer

A.*B.'
% ^-—-—-I can see in your code you swapped indices for B(j,i)
doc times