iid

조회 수: 9 (최근 30일)
kash
kash 2012년 4월 10일
I want to form an matrix,please help how to process
1)Set each entry of the matrix to an i.i.d. N(0; 1) value.
2)Orthogonalize the d rows of the matrix using the Gram-Schmidt algorithm
3)Normalize the rows of the matrix to unit length (i.e., important for preserving similarities in the lowdimensional space).

채택된 답변

Wayne King
Wayne King 2012년 4월 10일
Can't you do:
A = randn(10,10);
Q = orth(A');
or even
Q = qr(A');
  댓글 수: 1
kash
kash 2012년 4월 10일
Thanks wayne for the final step for ,normalising the rows
m=normr(Q) is correct

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by