Finding eigen vector using sym and solve

I am trying to find eigenvectors using the sym and solve functions: However solve only returns answers the all zero vector.
%
G = [6 -1; 2 3];
I = eye(2,2);
xx = sym('xx',[2,1]);
% eigenvalues are 5 and 4
eigvec = solve(G*xx==4*xx);

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 29일

0 개 추천

G = [6 -1; 2 3];
I = eye(2,2);
syms x
eigvec = solve(det(G-x*I)==0)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

태그

질문:

PA
2016년 4월 29일

답변:

2016년 4월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by