eigenvalues - determining the three major eigenvalues from a matrix
조회 수: 3 (최근 30일)
이전 댓글 표시
Is there a code or program I can download which will determine the three main eigenvalues,; t1 t2 and t3 of a matrix as I really am not sure how to go about this?
댓글 수: 0
채택된 답변
Muthu Annamalai
2013년 7월 10일
Take a look at the >> doc eigs >> doc eig as @Jan Simon has suggested.
So if A is your matrix and you want the first 3 eigenvalue-vector pairs, you just use,
>> [v,d] = eigs(A,3)
>> d = diag(d)
should solve your problem explicitly
댓글 수: 0
추가 답변 (2개)
Jan
2013년 7월 10일
Is your matrix large and sparse, then use eigs. Otherwise eig is sufficient. Both are builtin functions.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!