|MATLAB Function Reference|
Vector dot product
C = dot(A,B)
returns the scalar product of the vectors
B must be vectors of the same length. When
B are both column vectors,
dot(A,B) is the same as
For multidimensional arrays
dot returns the scalar product along the first non-singleton dimension of
B must have the same size.
C = dot(A,B,dim)
returns the scalar product of
B in the dimension
The dot product of two vectors is calculated as shown:
© 1994-2005 The MathWorks, Inc.