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

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!