"Roger Stafford" wrote in message <itumbo$27s$1@newscl01ah.mathworks.com>...
> "Carlos Junior" <carlosjunior@gmail.com> wrote in message <ituipa$n3l$1@newscl01ah.mathworks.com>...
> > Hi,
> > Please, if anyone could help me I would be very grateful...
> >
> > I have more than three 3D points in a plane distribution and I need to know the perpendicular vector of this plane ... In my case, I have 36 points at the 3D space... They are at the same plane... How could I know the perpendicular vector to this plane using all the points and not only three points ?
> >
> > Very Thanks.
> >
> > Carlos
>         
> The answer to your question depends on how much validity is to be attributed to your statement "They are at the same plane". If this statement is literally and exactly true, then there is absolutely no point in using any more than three of the points to find an orthogonal direction. Any three which are noncolinear will do.
>
> On the other hand if the points lie only approximately in a plane, then there is suddenly an urgent need to use all of the points to get the best possible answer.
>
> For the exactly planar case, let P, Q, and R be any three (noncolinear) points. Then cross(QP,RP) is a vector which is orthogonal to the plane of the points. End of story.
>
> For the approximately planar case, you can make use of the 'mean' and 'svd' functions, but I will hold off until I hear that you are interested in this possibility.
>
> Roger Stafford

Hi Roger,
Thank you by the answer ... Indeed, I need the second situation you have cited:
" For the approximately planar case, you can make use of the 'mean' and 'svd' functions" ...
I have an ideal situation using the 3D Studio Max and MatLab to test the theory ... But, the project is also done at the real world where the points are not exactly at the same plane! Thus, what I need is to know how to find a perpendicular vector to the "approximately planar case" ...
Very thanks,
Carlos
