Prev: www.jerseysuppliers.com Wholesale Cheap NFL Jerseys,NHL Jerseys,MLB Jerseys
Next: Matlab program to solve wave equation up to linear system of equations
From: David Young on 21 May 2010 10:25 "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 21 May 2010 10:27
Sorry - my mistake - not thinking - ignore my previous message. Yes, the cross product is correct. |