How to find the cross product of two vectors in Matlab and Octave
To calculate the cross product of two vectors on Matlab and Octave, we use the function cross()
The parameters a, b are two vectors.
The function calculates the cross product of the two vectors a x b.
Define two vectors
a = [3; 4; 5]
b = [1; 2; 3]
Calculate the cross product a x b using the function cross()
The result is the vector