MATLAB: Cross product of two points

cross product

I am trying to do the cross product of the following two points but I got this error 'Subscript indices must either be real positive integers or logicals'. p1 = [-2 -3 -1 ] and p22 = [-1 0 -2]

Best Answer

cross(p1,p22)