From: David Young on
"Hiram K. Hackenbacker" <brains(a)ir.org> wrote in message <Xns9D7FE129A4906brainsirorg(a)61.9.191.5>...
> "Els " <y.e.t.reeuwijk(a)student.utwente.nl> wrote in
> news:ht5ck9$4up$1(a)fred.mathworks.com:
>
> > I have possibly a very simple question.
> >
> > I have a vector a(x,y,z)(between P and P1), and a vector
> > b(x1,y1,z1)(between P1 and P2).
> >
> > How do I check in Matlab that the two vectors are in line with each
> > other? So that the angle between the vectors is zero.
>
> Check the vector cross product = [0 0 0]
> C = cross(A,B); A, B Vectors

No, the cross product is zero for vectors that are orthogonal to each other.
From: David Young on
Sorry - my mistake - not thinking - ignore my previous message. Yes, the cross product is correct.