MATLAB: How to do 1 to 1 matrix multiplication

matrix multiplication

i want to do a multiplication between 2 matrix but the Resultant matrix should be as in example
A=[1 2; 3 4]
B=[1 4 ; 2 3]
C=[1 8 ; 6 12]
if we do A.*B
I want it as C
like 1*1=1
2*4=8…

Best Answer

C=A.*B %what‘s wrong with this then?