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) computes the
cross product of the three-dimensional vectors and . This is the
The vectors must be defined over the same component ring.
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)
3-dimensional vectors, i.e., either two 3
×1 or two 1
×3 matrices of a domain of category
Vector of the same domain type as