Question: Submit your m-file and a diary that shows how you tested the c ode. Use the algorithm for Gram-Schmidt that was covered in lab and

 Submit your m-file and a diary that shows how you tested

Submit your m-file and a diary that shows how you tested the c ode. Use the algorithm for Gram-Schmidt that was covered in lab and not the algorithm that is written in the book. Write an m-file grams.m to perform the Gram-Schmidt process on the columns of a matrix A with an arbitrary number of columns (the input) and return a matrix Q whose columns are the resulting vectors. Test your code on the following matrix: A = (1 -1 7 1 0 6 -3 3 -7 -7 -7 4 -9 6 0 -1) Your output should be: Q = (0.0874 -0.0865 0.7714 0.6243 0 0.5438 -0.4903 0.6811 -0.6116 -0.6635 -0.2742 03.3324 -0.7863 0.5065 0.2990 0.2990 -0.1892) Cheek that your answer is orthonormal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!