From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Uniform random rotation matrix
Date: Sun, 1 Apr 2012 13:24:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <jl9ktr$f4c$>
References: <idr87f$ho7$> <idr8mi$q71$> <idrfee$3iu$> <idrg69$hrj$> <idrgpg$so6$> <idri4m$nuc$> <idriop$5q2$> <idrj41$buh$> <idrk4e$t80$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1333286651 15500 (1 Apr 2012 13:24:11 GMT)
NNTP-Posting-Date: Sun, 1 Apr 2012 13:24:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3414301
Xref: comp.soft-sys.matlab:762844

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <idrk4e$t80$>...
> Just wonder John, does the QR of your Matlab always output diag(R)>=0 ?
> If not, a change should perhaps is nevessary:
> [Q, R] = qr(randn(ndim))
> Q = Q*diag(sign(diag(R)))
> Bruno

Hi Bruno,

How did you come up with this formula for uniform random rotation matrices? Is there a proof or some literature available?