The cross product of vectors a
and b
can be computed in Matlab using the cross
function. Here is an example:
main.m53 chars7 lines
Output:
main.m15 chars2 lines
The resulting vector c
is the cross product of a
and b
.
gistlibby LogSnag