This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Cross product of three-dimensional vectors

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.


linalg::crossProduct(u, v)


linalg::crossProduct(u, v) computes the cross product of the three-dimensional vectors and . This is the vector


The vectors must be defined over the same component ring.


Example 1

We define two vectors:

a := matrix([[1, 2, 3]]);
b := matrix([[-1, 0, 1]])

The cross product of these two vectors is a vector which is orthogonal to and :

c:= linalg::crossProduct(a, b)

linalg::scalarProduct(a, c), linalg::scalarProduct(b, c)


u, v

3-dimensional vectors, i.e., either two 3 ×1 or two 1 ×3 matrices of a domain of category Cat::Matrix

Return Values

Vector of the same domain type as u.

See Also

MuPAD Functions

Was this topic helpful?