Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions