Your question is a little unclear, but if you want to do matrix multiplication like this:
|a,b,c| * |e| = (ad+be+fc)
|b| * |e,f,g| = |be,bf,bg|
then you want to use the normal * operator and not the .* operator.
The .* operator will multiply a constant by each element in the matrix or array. It will also do elementwise multiplication on arrays of the same size.
|a,b| |e,f| |ae,bf|
|c,d| .* |g,h| = |ag,dh|