RandOrthMat
by Ofek Shilon
25 Jul 2006
(Updated 06 Sep 2006)
Generates a random orthogonal (real) square matrix of given size.
|
Watch this File
|
| File Information |
| Description |
M = RANDORTHMAT(n)
Generates a random n x n orthogonal real matrix.
M = RANDORTHMAT(n,tol)
Explicitly specifies a thresh value that measures linear dependence of a newly formed column with the existing columns. Defaults to 1e-6.
The generated matrix distribution is now (as of Sept 06) uniform over the manifold O(n) w.r.t. the induced R^(n^2) Lebesgue measure. Thanks to Roger Stafford and his randsphere for the idea. |
| MATLAB release |
MATLAB 7.2 (R2006a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 27 Jul 2006 |
John D'Errico
|
|
|
| 13 Oct 2010 |
Jesus Puente
|
|
|
| 01 Dec 2011 |
dberm22
|
|
|
| Updates |
| 31 Jul 2006 |
Minor performence improvements, descriptions updadated. |
| 05 Sep 2006 |
Algorithm modified to generate orthogonal matrices uniformly. |
| 06 Sep 2006 |
bug fix - rand replaced with randn. |
|
Contact us at files@mathworks.com