how to solve eigen values and vectors without the expression eig

조회 수: 2 (최근 30일)
Alyaa Alzaabi
Alyaa Alzaabi 2017년 2월 18일
댓글: Patrick Franks 2018년 12월 19일
how to write a matlab code to generate eigen values and vectors of the matrix A=[1,1;4,-2] the code should not involve [x,y]=eig(A) ,, it should be another way
  댓글 수: 2
Christine Tobler
Christine Tobler 2018년 11월 13일
Why don't you want to use EIG? Is this for an exercise, or is the function not available for some reason?
Patrick Franks
Patrick Franks 2018년 12월 19일
In my case, EIG doesn't behave correctly for matrices that are 5x5 or larger when compiled into C on a target computer. The eigenvalues can still be calculated by finding the roots of the characteristic polynomial of the matrix [i.e. roots(poly(A))], but eigenvectors also need to be calculated without using eig.
Using the null space of A-lamda*I has been suggested, but for some reason the matrix A-lamda*I in my case is not rank-deficient.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2017년 2월 18일
편집: Matt J 2017년 2월 18일
Potentially useful commands: ROOTS, POLY, NULL
  댓글 수: 2
Sunil Patil
Sunil Patil 2018년 11월 13일
HI,
I have used 'null' function to find the eigen vectors null(A-lamda*I).
obtained eigen vectors are not matching with the vactors getting by eig() function.
does it need vector normalisation ?
Kindly suggest..
Thanks
Sunil Patil
Matt J
Matt J 2018년 11월 13일
There might be differences in sign. Or, the null space of A-lamda*I might be multi-dimensional, If so, null() and eig() may not return the same basis for that space.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Gain Scheduling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by