Vector dot product
C = dot(A,B)
C = dot(A,B,dim)
For multidimensional arrays A and B, dot returns the scalar product along the first non-singleton dimension of A and B. A and B must have the same size.
The dot product of two vectors is calculated as shown:
a = [1 2 3]; b = [4 5 6]; c = dot(a,b) c = 32