how to generate a matrix X(n*k) such that X'X=I_k (Identity matrix with dimension k)?

Answers (1)

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

@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.
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.

Sign in to comment.

Categories

Asked:

on 11 Feb 2015

Commented:

on 11 Feb 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!