3x3 Cross Product
Calculate cross product of two 3-by-1 vectors
Aerospace Blockset / Utilities / Math Operations
The 3x3 Cross Product block computes cross (or vector) product of two vectors, A and B. The block generates a third vector, C, in a direction normal to the plane containing A and B, with magnitude equal to the product of the lengths of A and B multiplied by the sine of the angle between them. The direction of C follows the right-hand rule in turning from A to B. For related equations, see Algorithms.
A — First cross product input
First cross product input, specified as a vector.
[10 2 3]
B — Second cross product input
Second cross product input, specified as a vector.
[10 2 3]
C — Cross product
Cross product, output as a vector.
The equations used to calculate A, B, and C are:
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced before R2006a