1

I'm trying to multiply a matrix 4x1 with a vector 1x4. I'm supposed to get a matrix 4x4. When I try to multiply both matrices I get an error, incompatible shapes. It doesn't make any sense because the shapes are compatible so probablyh I'm doing something wrong:

B = {{3619.3}, {3619.3}, {-29800}, {0}} 
Cc = {0, 0, 0, 1} 
B.Cc 

Dot::dotsh: Tensors {{3619.3},{3619.3},{-29800},{0}} and {0,0,0,1} have incompatible shapes.

I tried doing similar multiplications but sometimes Matheamtica doesn't give any error but gives me wrong a answer which is worse. What Am I doing wrong?

0 Answers0