Question: 4. (4 pts, MATLAB) Write a MATLAB function which implements the Rayleigh-Quotient iteration for eigenvalue and eigenvector calculation. The function call must be [1, v]

4. (4 pts, MATLAB) Write a MATLAB function which implements the Rayleigh-Quotient iteration for eigenvalue and eigenvector calculation. The function call must be [1, v] = uubitname hw10_p4(A, v0), where A is a real, square, and symmetric matrix, v0 is the initial vector, 1 is the resulting eigenvalue, and v is the associated eigenvector. In the code use a tolerance of 10- and normalize v0. You are allowed to use the following MATLAB functions: dot, norm, eye, abs, and either inv or the slash-operator. If you need to use another function please check with the instructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
