A .* B
A .* B multiplies the elements of A by the elements of B. A.*B is the array or matrix with elements A(i,j)*B(i.j).
A |
B |
A .* B |
[1,-2,-4,2] |
[1,2,1,4] |
[1,-4,-4,8] |
[2,0;0,2] |
[1,2;3,4] |
[2,0,0,8] |
[2,0;0,2] |
1 |
not allowed! |
A and B must have the same size.