Deriving X from X'X
1 次查看(过去 30 天)
显示 更早的评论
Hello, I am hoping someone can help me determine the n x k matrix X when the k x k matrix X'X is given using Matlab. Please share any coding tips! Many thanks!!
2 个评论
Walter Roberson
2016-10-2
if n > k then there will cannot be a unique solution, as k x k would not have enough information to find n x k when n > k.
If n < k then round-off error has the potential to be a problem.
回答(1 个)
Jang geun Choi
2016-10-2
编辑:Jang geun Choi
2016-10-2
n=2;
k=3;
X=rand(n,k); % make sample matrix X
Xn=X'*X
Is it right what you want?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!