getPsi()

function [Psi, epsilon]=getPsi(W)

Input:

Output:

Provide a function of the above prototype in the file ``getPsi.m'' which computes the final solutions from the non-orthonormal $W$ according to the formulas Eqs. (12,13).

Hint: Given the matrix ``mu=Y'*H(Y)'', the code fragment

  [U, epsilon]=eig(mu); epsilon=real(diag(epsilon));}
produces the matrix $U$ and the vector $\vec \epsilon$ in Eq. (15). (Again, we take a real part because rounding errors sometimes lead to tiny imaginary parts.)



Subsections

Tomas Arias 2005-04-03