Question: Help with matlab code, creating two functions - please attach the code in the answer 1. create a function that , the input to the

Help with matlab code, creating two functions -

please attach the code in the answer

1. create a function that , the input to the function is 2D array, each column of which is a vectr in the original linearly independent set of vectors. Implement GS to create an orthomormal set of vectors from these, then store them as columns in an output matrix, simialr to the input format. use norm if needed.

2. create a function that has a single 2D array as the input. the function should return 1 if all columns are orthonormal and 0 otherwise. (dont do direct floating point equality comparison, instead apply threshold like |x -x(hat)| > e (elipson). (eps function). added fudge factor if needed.

then test the fuctions with random complex vectors using rand function. for two cases - where the more elements in each vector than the number of vectors, where the number of vectors is equal to the number of elements in a vector.

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!