How can I find the joint eigenvalues of two matrices in MATLAB?

十年热恋 提交于 2020-03-04 03:43:30

问题


If the joint eigenvalues of matrices A and B are defined as the roots of the equation det(lambda * A - B) = 0, how can I solve this in MATLAB?

In particular, I am not sure how exactly lambda is defined - it obviously needs to be a matrix or vector, as otherwise there would only be one joint eigenvalue. Also, I am not sure if there is any in-built function, or if, say, fzero for finding the roots of nonlinear functions needs to be used.


回答1:


There is a built-in function for this.

http://www.mathworks.com/help/matlab/ref/eig.html

[V,D] = eig(B,A);

[V,D] = eig(A,B) solves the system det(A - lambda*B) == 0. However, the desired system to solve is det(A*lambda - B) == 0 and so the inputs are reversed to respect solving this system.



来源:https://stackoverflow.com/questions/36551182/how-can-i-find-the-joint-eigenvalues-of-two-matrices-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!