フィルターのクリア

How can I create this orthogonal matrix using MATLAB?

2 ビュー (過去 30 日間)
Qian
Qian 2014 年 3 月 31 日
回答済み: Zeynep Erdogan 2019 年 7 月 13 日
I would like to create the following matrix for know m and n.
The matrix is in the following format for 1<=j<=n. Thanks.
  2 件のコメント
Youssef  Khmou
Youssef Khmou 2014 年 3 月 31 日
編集済み: Youssef Khmou 2014 年 3 月 31 日
hi, Can you mention the source of the orthogonal matrix above?
The other question is if m=n, what can you say about Lnn?
John D'Errico
John D'Errico 2014 年 3 月 31 日
Why would a loop not suffice?

サインインしてコメントする。

採用された回答

Andrew Sykes
Andrew Sykes 2014 年 3 月 31 日
If m>n the following should work.
m=8;
n=5;
L=zeros(m,n);
for j=1:n
L(:,j)=((m-n+j-1).*(m-n+j)).^(-1/2).*[ones(m-n+j-1,1) ; -(m-n+j-1) ; zeros(n-j,1)];
end
disp(L)
If m<=n, a similar approach should be possible (but this exact code will generate errors).
  1 件のコメント
Youssef  Khmou
Youssef Khmou 2014 年 3 月 31 日
編集済み: Youssef Khmou 2014 年 3 月 31 日
if m=n, the first column contains NaNs....

サインインしてコメントする。

その他の回答 (1 件)

Zeynep Erdogan
Zeynep Erdogan 2019 年 7 月 13 日
grareg

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by