Opening the book…
The cross product combines two three-dimensional vectors and returns another vector. The result is perpendicular to both original vectors. In MATLAB, use the cross function.
Calculating the corss product of two vectors.
Solution
C = 5 8 -6
Calculating Torque
A common physical example of the cross product is calculating torque. When a force is applied to rotate an object, the torque is calculated as the cross product of the position vector and the force vector. The result is another vector whose direction shows the axis of rotation.
Torque measures how strongly a force tends to rotate an object around a point or axis. In vector form:
\(
\vec{\tau} = \vec{r} \times \vec{F}
\)
where \(\vec{r}\) is the position vector from the pivot point to where the force is applied, and \(\vec{F}\) is the force vector.
For example, imagine using a wrench to loosen a bolt. The position vector \(\vec{r}\) points from the center of the bolt to the point where your hand applies the force. The force vector \(\vec{F}\) points in the direction you push or pull. The cross product gives the torque vector, which points along the axis of rotation.
Calculating the torque.
Solution
torque = [0 0 6]
This means the torque has a magnitude of 6 N·m and points in the positive z-direction.
The cross product is defined for three-dimensional vectors. If you try to use it with vectors that do not have the correct dimensions, MATLAB will give an error.
This page titled 13.8: Cross Product of Two Vectors was last modified on Tue, 30 Jun 2026 02:11:59 GMT and is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Zara Noroozi.
The book could not be loaded just now.