Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How to generate an orthogonal matrix in Octave?

I saw something like that

gallery('orthog',n,k)

in matlab, but I can't find any similar function in Octave.

Thanks!

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted
  1. You can apply QR to a given random matrix: [q, r] = qr (a). The matrix q will be orthogonal.
  2. You can use orthogonal basis computation: Q = orth(A) on a random matrix A.
share|improve this answer
    
Thanks a lot :) –  skorek Mar 5 '12 at 23:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.