Inverted signs using eig function... again

8 views (last 30 days)
Daniel  Lai
Daniel Lai on 5 Mar 2016
Edited: John D'Errico on 5 Jun 2020
Hi everyone. I know this is a very popular question and I've read a few questions about it but I can't understand much mathematical/matlab jargon so I'm trying to ask again.
Basically I have two 3x3 matrices, K and M. And I'm using the following:
[V,G]=eig(K,M)
...to find the eigenvectors and plot them with one varying variable used in K. And I got this graph attached below.
Obviously you can see a part of the graph has been put a negative sign. Thus I have no idea on how to invert it back.
I've found the 'eigenshuffle' function provided in one of the threads here(<http://www.mathworks.com/matlabcentral/fileexchange/22885-eigenshuffle>) but I can't get generalized eigenvectors(?). As in I cannot have two input matrices K and M as I have before.

Answers (1)

John D'Errico
John D'Errico on 5 Jun 2020
Edited: John D'Errico on 5 Jun 2020
I've posted a new version of eigenshuffle to handle generalized eigenvalues.
Far to late for the answer to be useful to you. Sorry about the delay.

Categories

Find more on Sparse Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!