How do I find the eigenvalues and vectors of an equation not of form (A*x = b*x)?
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to solve a vibrations problem in which my eigenvalue equation is K*x = b*M*x, where K and M are matrices and b is a scalar. I can do this by hand for low dimensional problems, but it gets to be way too much after more than 2-3 degrees of freedom are introduced.
Is there a built in command to do this? K and M are symbolic matrices.
1 Kommentar
Jeffrey Clark
am 1 Okt. 2022
@Edward Walker, as indicated in the tips documentation the symbolic eig function does not support solving the generalized eigenvalue problem (with two input arguments). To solve the generalized eigenvalue problem, use the MATLAB eig function instead by converting the input matrices to a MATLAB numeric type. As in this varient:
Antworten (2)
John D'Errico
am 1 Okt. 2022
Bearbeitet: John D'Errico
am 1 Okt. 2022
This is a classic problem in eigenvalues, caled the generalized eigenvalue problem. That is, if you want to solve the eigenproblem
A*x = lambda*B*x
then eig solves it for you, directly.
help eig
Do you see that one of the options allows you to provide TWO matrices? All you need to do is:
[V,D] = eig(K,M);
Of course, if the matrix M is non-singular, then it is equivalent to writing the problem as
inv(M)*K*x = lambda*x
So then you could use eig simply as
[V,D] = eig(inv(M)*K);
In general, it is better to avoid the matrix inverse computation, so just use the generalized eigenvalue solver you already have in the form of eig(K,M).
0 Kommentare
Siehe auch
Kategorien
Mehr zu Eigenvalues & Eigenvectors 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!