cross
Vector cross product.
Syntax
R = cross(x,y)
R = cross(x,y,dim)
Inputs
- x,y
- Vectors or matrices on which the cross product is performed.
- dim
- Dimension on which to perform the calculation.
Outputs
- R
- The cross product output.
Examples
Vector cross example:
R = cross([1,2,3],[4,5,6])
R = [Matrix] 1 x 3
-3 6 -3
R = cross([1,2,3;4,5,6;7,8,9],[1,4,6;7,2,3;6,3,0])
R = [Matrix] 3 x 3
-25 -1 -27
1 26 54
3 -16 -27