How can I create this orthogonal matrix using MATLAB?

4 visualizaciones (últimos 30 días)
Qian
Qian el 31 de Mzo. de 2014
Respondida: Zeynep Erdogan el 13 de Jul. de 2019
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 comentarios
Youssef  Khmou
Youssef Khmou el 31 de Mzo. de 2014
Editada: Youssef Khmou el 31 de Mzo. de 2014
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 el 31 de Mzo. de 2014
Why would a loop not suffice?

Iniciar sesión para comentar.

Respuesta aceptada

Andrew Sykes
Andrew Sykes el 31 de Mzo. de 2014
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).

Más respuestas (1)

Zeynep Erdogan
Zeynep Erdogan el 13 de Jul. de 2019
grareg

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by