Documente Academic
Documente Profesional
Documente Cultură
Related Results
5 Growth Stocks for 2012
Discover Your Best Opportunities For Safe Portfolio Growth.
Without any ado at all, I present Matlab 6.5 code to do Modified Gram-Schmidt Orthogonalization,
otherwise known as QR Factorization. You can use a QR factorization to compute a number of things, the
least of which is the least squares solution, which can be computed in the following manner:
Great!! Now you can find your own best fit lines. Heres the QR factorization algorithm:
q = zeros(m, n);
r = zeros(n, n);
for k = 1:n
r(k,k) = norm(A(1:m, k));
if r(k,k) == 0
break;
end
for j = k+1:n
r(k, j) = dot(q(1:m, k), A(1:m, j));
A(1:m, j) = A(1:m, j) r(k, j) * q(1:m, k);
end
end
1 of 5 27-12-2011 11:49
Modified Gram-Schmidt Orthogonalization in Matlab Elliott C. Back http://elliottback.com/wp/modified-gram-schmidt-orthogonalization-in-...
Related Results
5 Growth Stocks for 2012
Discover Your Best Opportunities For Safe Portfolio Growth.
This entry was posted on Saturday, October 16th, 2004 at 5:50 pm and is tagged with nbsp
nbsp nbsp nbsp nbsp, squares solution, qr factorization, least squares, gram schmidt, 0
orthogonalization, back substitution, zeros, best fit, orthogonal, matlab, algorithm, norm, cn, tweets
matrix. You can follow any responses to this entry through the RSS 2.0 feed. You can leave tweet
a response, or trackback.
Do I need to run this function several time on the last result in order to improve the result?
Shmuel
Reply
2. Elliott Back says:
1/21/2008 at 10:09 am
Yes, but it wont give anything useful to you; youll end up with output like an identity matrix.
Reply
3. shriks says:
1/21/2008 at 6:10 am
Reply
touseef says:
10/20/2010 at 1:50 am
no dear
we can not aplly this method for linearly dependent vector .
Reply
4. Anonymous says:
7/3/2005 at 6:41 am
function Q = mgs(A)
n = size(A,2);
2 of 5 27-12-2011 11:49
Modified Gram-Schmidt Orthogonalization in Matlab Elliott C. Back http://elliottback.com/wp/modified-gram-schmidt-orthogonalization-in-...
Q = A;
for k = 1:n-1,
Q(:,k) = A(:,k) ./ norm(A(:,k));
A(:,k+1:n) = A(:,k+1:n) Q(:,k) * (Q(:,k) * A(:,k+1:n));
end;
Q(:,n) = A(:,n) ./ norm(A(:,n));
Reply
5. Nemo says:
5/9/2005 at 4:35 pm
Reply
Leave a Reply
Name (req)
Mail(req)
Website
Powered by WP Hashcash
The Search
3 of 5 27-12-2011 11:49
Modified Gram-Schmidt Orthogonalization in Matlab Elliott C. Back http://elliottback.com/wp/modified-gram-schmidt-orthogonalization-in-...
Related Results
Related Posts:
As promised, I've got the cleaned up US state boundary data, perfect for creating visualizations in Excel
or Matlab. It's a dataset of (x,y) points ...
Update: The dataset is finished, and very pretty. For a CS490 project I'm working on I need to colour a
map of the US by ...
You Came
The New From
ElliottBack.com
4 of 5 27-12-2011 11:49
Modified Gram-Schmidt Orthogonalization in Matlab Elliott C. Back http://elliottback.com/wp/modified-gram-schmidt-orthogonalization-in-...
The Meta
Log in
Administrative
RSS
Comments RSS
Mastering MATLAB 7
Duane C.
Hanselman...
New $68.39
Best $33.99
Modeling Derivatives
Applications in...
Justin London
New $130.93
Best $79.49
Computer
Explorations in
Signals and...
John R. Buck, Mich...
New $34.33
Best $20.00
Introduction to
Engineering
Programm...
Mark Austin, David...
New $131.25
Best $2.55
Introduction to Matlab
7 for Enginee...
William J Palm III...
Best $3.68
Privacy Information
XHTML
CSS
RSS
Comments
5 of 5 27-12-2011 11:49