Gram-Schmidt Orthonormalization Process

Version 1.0.4 (1.62 KB) by M
A simple code for Gram-Schmidt Orthonormalization where you input a matrix and get its normalized orthogonal equivalent
195 Downloads
Updated 14 Nov 2020

View License

About me (Ahmed Metwalli , Mail : sniperahmed4@gmail.com , Communication Engineer Egypt)

This is a simple code (1 shot code) to force the vectors inside a matrix to be orthogonal and normalized according to Gram-Schmidt Orthonormalization Process .
This code is mainly done for educational cases.

Cite As

M (2024). Gram-Schmidt Orthonormalization Process (https://www.mathworks.com/matlabcentral/fileexchange/82758-gram-schmidt-orthonormalization-process), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.4

Minor changes
if there's an output vector or NaN or 0s so it's linearily dependent

1.0.3

Removed commented for loop

1.0.2

Removed the commented for loop

1.0.1

The code had a problem in the for loop boundaries. This error is now fixed by adjusting the first 2 components (u1 and w2) before entering the loop.
The logic is adjusted in k where k is the number of columns vectors.

1.0.0