Code covered by the BSD License  

Highlights from
cgrscho

5.0

5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 2.84 KB File ID: #12465

cgrscho

by Antonio Trujillo-Ortiz

 

30 Sep 2006 (Updated 05 Oct 2006)

Classical Gram-Schmidt orthogonalization procedure.

| Watch this File

File Information
Description

This procedure construct an orthonormal basis from any set of N linearly independent vectors. Obviously, by skipping the normalization step, we could also form simply an orthogonal basis. The key ingredient of this procedure is that each new orthonormal basis vector is obtained by subtracting out the projection of the next linearly independent vector onto the vectors accepted so far into the set. We may say that each new linearly independent vector s_n is projected onto the subspace spanned by the vectors [o_0,...,o_n-1], and any nonzero projection in that subspace is subtracted out of s_n to make the new vector orthogonal to the entire subspace. In other words, we retain only that portion of each new vector s_n which points along a new dimension. The first direction is arbitrary and is determined by whatever vector we choose first (s_0 here). The next vector is forced to be orthogonal to the first. The second is forced to be orthogonal to the first two, and so on.

Orthogonalization methods play a key role in many iterative methods. The Gram-Schmidt process is a method for orthogonalizing a set of vectors in an inner product space. A set of vectors in an inner product space is called an orthogonal set if all pairs of distinct vectors in the set are orthogonal (the angle between them is pi/2). An orthogonal set in which each vector has a norm of 1 is called an orthonormal set.

The method is named for Jørgen Pedersen Gram (a Danish actuary) and Erhard Schmidt (a German mathematician) but it appeared earlier in the work of Laplace and Cauchy. -Gram-Schmidt's orthogonalization process- term appeared by first time in 1936 on the Wong's paper 'An Application of Orthogonalization Process to the Theory of Least Squares'.

Input:
A - matrix of n linearly independent vectors of equal size. Here, them must be arranged as columns.

Output:
Matrix of n orthogonalized vectors.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
06 Nov 2006 A B  
14 Mar 2007 Mitchai Chongcheawchamnan

Very useful tool

Please login to add a comment or rating.
Updates
02 Oct 2006

It was added an appropriate format to cite this file.

02 Oct 2006

Text was improved.

05 Oct 2006

Category assigned must be on Mathematics: Linear Algebra

Tag Activity for this File
Tag Applied By Date/Time
linear algebra Antonio Trujillo-Ortiz 22 Oct 2008 08:42:01
orthogonalization Antonio Trujillo-Ortiz 22 Oct 2008 08:42:01
gramschmidt Antonio Trujillo-Ortiz 22 Oct 2008 08:42:01
vectors Antonio Trujillo-Ortiz 22 Oct 2008 08:42:01
classical gramschmidt Antonio Trujillo-Ortiz 22 Oct 2008 08:42:01
orthogonalization Fiza Malik 16 Oct 2011 05:04:22

Contact us at files@mathworks.com