필터 지우기
필터 지우기

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

Zeynep Erdogan
Zeynep Erdogan 2019년 7월 13일
grareg

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by