RandOrthMat

Generates a random orthogonal (real) square matrix of given size.

Vous suivez désormais cette soumission

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.

Citation pour cette source

Ofek Shilon (2026). RandOrthMat (https://fr.mathworks.com/matlabcentral/fileexchange/11783-randorthmat), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : kfs_suite

Catégories

En savoir plus sur Random Number Generation dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

bug fix - rand replaced with randn.