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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started