FUNCTION REFERENCE
dot
Dot product, conjugating the first input.
Dot product, conjugating the first input.
Syntax
dot(A, B)Syntax
dot(A, B, dim)Vectors of equal length give a scalar, even when their orientations differ. Otherwise inputs must have the same size and are summed along the first nonsingleton dimension, or the specified dim. A dim above 2 returns conj(A).*B. Real, complex and logical inputs are accepted.
Example
dot([1 2 3],[4;5;6]) % 32Differences from MATLAB: Only 2-D arrays are supported. A complex result with zero imaginary part is real.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.