Reputation: 118
I want to generate a M*N matrix (M is not equal to N) with following constraints in MATLAB:
Step 1. Set each entry of the matrix to an i.i.d. N(0,1) value.
Step 2. Orthogonalize the M rows of the matrix using the Gram-Schmidt algorithm.
Step 3. Normalize the rows of the matrix to unit length.
I do not know how to implement second step of above.
Any help is appreciated.
Upvotes: 3
Views: 5626