what command should i use to have real part of the eigenvalues of the matrix in symbolic form
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Arooj Ibrahim
am 29 Okt. 2019
Beantwortet: Arooj Ibrahim
am 29 Okt. 2019
clear all
m=sym('m')
n=sym('n')
A=[0 1 1/sqrt(3*n*m); 2 4 2/sqrt(3*n*m); 3 4 5/sqrt(3*n*m)]
eig(A)
I need to find the eigenvalues of this matrix but i just want a precise answer of variables 'n' and 'm' in real form, its not working, what should i do?
0 Kommentare
Akzeptierte Antwort
Cyrus Tirband
am 29 Okt. 2019
Use the sym command when defining the matrix
m=sym('m')
n=sym('n')
A=sym([0 1 1/sqrt(3*n*m); 2 4 2/sqrt(3*n*m); 3 4 5/sqrt(3*n*m)])
eig(A)
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!