If A and B are two matrices of the same size, then A
.* B and A ./ B are the
matrices of the same size, whose entries are the products/quotients of the
corresponding entries of A and B.
For example
A = [1, 2, 3, 4, 5];
A .* A
1 4 9 16 25
A = [1, 2; 3, 4];
B = [1, 1; 2, 2];
A .* B
1 2
6 8
A ./ B
2
1.5 2
oz
2009-12-22