Create orthonormal vectors

Creates a random set of orthonormal vectors
2K Downloads
Updated 28 Jul 2008

No License

Produces an m x n set of orthonormal vectors,

Inputs should be two scalars, m and n, where n is smaller than
or equal to m.

Example: >> get_orthonormal(5,4)

ans =
0.1503 -0.0884 -0.0530 0.8839
-0.4370 -0.7322 -0.1961 -0.2207
-0.3539 0.3098 0.7467 -0.0890
0.7890 -0.1023 0.0798 -0.3701
-0.1968 0.5913 -0.6283 -0.1585

Cite As

Calvin Price (2026). Create orthonormal vectors (https://www.mathworks.com/matlabcentral/fileexchange/18973-create-orthonormal-vectors), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

Program now creates a set of m x n orthonormal vectors, where user chooses m and n.