FUNCTION REFERENCE
cross
Cross product of three-element vectors.
Cross product of three-element vectors.
Syntax
cross(A, B)Syntax
cross(A, B, dim)Without dim, three-element vectors may have different orientations; the result is a row if either input is a row. Otherwise inputs must have the same size, and the first dimension of length 3 is used. An explicit dim must have length 3. Real, complex and logical inputs are accepted.
Example
cross([1 0 0],[0;1;0]) % [0 0 1]Differences from MATLAB: Only 2-D arrays are supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.