Owning Class: vector
Requires: MathScript RT Module
c = cross(a, b)
c = cross(a, b, dim)
Computes the cross product of two three-element vectors or matrices.
| Name | Description | ||||
|---|---|---|---|---|---|
| a | Specifies a three-element vector or matrix. | ||||
| b | Specifies a three-element vector or matrix. | ||||
| dim | Specifies the order in which LabVIEW computes the cross product for matrices. dim is a scalar that accepts the following values.
|
| Name | Description |
|---|---|
| c | Returns the cross product of a and b. c is a three-element vector or matrix. |
A = [1, 2, 3]
B = [0, -3, 2]
C = cross(A, B)