Problem 59656. Orthogonalize 3 column vectors using the Gram-Schmidt process
Use the Gram-Schmidt process to orthogonalize three linearly independent column vectors. Return three output column vectors that are orthogonal and unit length. One example of three linearly independent vectors is u1=[1;1;0], u2=[2;3;4], and u3=[3;5;1].
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 25 Feb 2024
Nice problems (This one and #59651) @Ryan, but you should put atleast 3 test cases in a problem to avoid hard-coded/look-up table solutions.
You could also add a test case to check for some restrictions on the code. (Check mine or ChrisR's recent questions to get an idea about this).
Solution Comments
Show commentsProblem Recent Solvers13
Suggested Problems
-
22507 Solvers
-
Remove the two elements next to NaN value
698 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
252 Solvers
-
Find out missing number from a vector of 9 elements
319 Solvers
-
Find last zero for each column
686 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!