Perform Gram Schmidt orthogonalization in MATLAB

I have three columns of vectors, representing three points in a rigid body, I want to reconstruct a fourth column of vectors, where the relation from the fourth column vector to the remaining three column of vectors are known. I have heard that Gram-Schmidt orthogonalization is the best process since it's algorithm would create a fourth column of vectors, assuming that it is a rigid body. I have attached an image for your help. Thank You!

 Akzeptierte Antwort

Matt J
Matt J am 11 Feb. 2014
Bearbeitet: Matt J am 11 Feb. 2014

0 Stimmen

The ORTH command or QR command are probably the best for orthogonalization, in general.
If you already have 3 linearly independent vector in 3D space, there is no way to obtain a 4th vector in 3D space that is linearly independent of the other three, if that's what you were trying to do. That would violate laws of linear algebra.

3 Kommentare

in your diagram, it just looks like you are being asked to solve for 'f'. With R known, it would just be
f=R\(p4-p1)
Thanks Matt, the vectors are not linearly independent in 3-D space. Are you aware of any command that would compute the 4th vector in 3D, based on the remaining four vectors in MATLAB?
Have you tried
f=R\(p4-p1)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by