DOT Dot Product Function
Section: Elementary Functions
UsageComputes the scalar dot product of its two arguments. The general syntax for its use is
y = dot(x,z)
z are numerical vectors of the same length. If
z are multi-dimensional arrays of the same size, then
the dot product is taken along the first non-singleton dimension.
You can also specify the dimension to take the dot product along using
the alternate form
y = dot(x,z,dim)
dim specifies the dimension to take the dot product along.