Question: Create a matlab function that employs the Power Method (PM) to find the largest eigenvalue(evalue) and eigenvector (evector) of a matrix X. The prototype of
Create a matlab function that employs the Power Method (PM) to find the largest eigenvalue(evalue) and eigenvector (evector) of a matrix X. The prototype of the function should looklike the following.
function [evalue, evector]=PM_eigen(X);
Check that the matrix is square and limit the number of iterations to count(1000). Use a method to indicate to the calling function that no solution was found (evalue=NaN)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
