how to generate a matrix X(n*k) such that X'X=I_k (Identity matrix with dimension k)?
Show older comments
how to generate a matrix X(n*k) such that X'X=I_k (Identity matrix with dimension k)?
thx!!
Answers (1)
Torsten
on 11 Feb 2015
0 votes
Set X to the zero matrix, except for ones on the main diagonal (X(i,i)=1 for i=1,...,min(n,k)).
Best wishes
Torsten.
2 Comments
Roger Stafford
on 11 Feb 2015
@Torsten. That doesn't work if k > n. I think it is an impossible problem if k > n. For example, if n = 1 and k > 1, it is clearly impossible.
Torsten
on 11 Feb 2015
You are right. The rank of X'X is always <= min(n,k). So for n<k, X'X=I_k is impossible.
Best wishes
Torsten.
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!