gs - end end Psi = V(:,i)/sqrt(norm); for j = i+1:M coef =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function Psi = gs(V) % function Psi = gs(V) %------------------------------------------------------------ [n, M] = size(V); for i = 1:M norm = abs(V(:,i)'*V(:,i)); if(norm > 0) break;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: end end Psi = V(:,i)/sqrt(norm); for j = i+1:M coef = Psi'*V(:,j); z = V(:,j) - Psi*coef; norm = abs(z'*z); if(norm > 0) Psi = [Psi, z/sqrt(norm)]; end end return;...
View Full Document

This note was uploaded on 10/06/2009 for the course EE 200 taught by Professor Zadeh during the Fall '08 term at USC.

Ask a homework question - tutors are online