cross(x, y)
x
and <
are vectors, a matrix of
3-dim. vectors if x
and y
are matrices themselves. The more general cross product of n-1
vectors in n-dimensional
space is not yet realized in Matlab, Octave, or R.
dot
cross(c(1, 2, 3), c(4, 5, 6)) # -3 6 -3
Run the code above in your browser using DataLab