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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

タグ

質問済み:

2012 年 4 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by