Given two vectors
a = 1:3;
b = 2:4;
it's well known that the element-wise mutiplication a.*b
produces
[ 2 6 12 ]
Calling that result c
, we have c(i) = a(i)*b(i)
But I don't understand how a.*b'
, b'.*a
and b'*a
all produce
[ 2 4 6
3 6 9
4 8 12 ]
For the matrix multiplication b'*a
, we know c(i,j) = b(i)*a(j)
.
But why do the other two also produce the same result?