Gram-Schmidt orthogonalization

版本 1.0.0.0 (1.7 KB) 作者: Mo Chen
Gram-Schmidt orthogonalization
4.1K 次下载
更新时间 2016/3/9

查看许可证

This package implements the Gram-Schmidt algorithm and Modified Gram-Schmidt algorithm (MGS improve numerical stability over GS) for orthogonalizing or orthonormalizing vectors.
Gram-Schmidt algorithm factorizes a matrix X into two matrix Q and R, where Q is an orthogonal or orthonormal matrix and R is a upper triangular matrix and X=Q*R. The difference between orthogonal and orthonormal matrix is that for an orthonormal matrix, each column is orthogonal to others and has unit length.

This package contains following four functions:
gsog.m: Gram-Schmidt orthogonalization
gson.m: Gram-Schmidt orthonormalization which produces the same result as [Q,R]=qr(X,0)
mgsog.m: Modified Gram-Schmidt orthogonalization
mgson.m: Modified Gram-Schmidt orthonormalization which produces the same result as [Q,R]=qr(X,0)

This package is now a part of the PRML toolbox (http://www.mathworks.com/matlabcentral/fileexchange/55826-pattern-recognition-and-machine-learning-toolbox).

引用格式

Mo Chen (2024). Gram-Schmidt orthogonalization (https://www.mathworks.com/matlabcentral/fileexchange/55881-gram-schmidt-orthogonalization), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0