Positive eigenvector coefficients with matlab
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
crocusy
am 12 Nov. 2017
Kommentiert: crocusy
am 13 Nov. 2017
Hello, I need positive eigenvector coefficients. I am new in Matlab. I've thought to place eig function into fmincon function with the constraint e>=0. However, i couldn't manage it. How can i obtain positive eigenvector coefficients with matlab?
2 Kommentare
Kaushik Lakshminarasimhan
am 12 Nov. 2017
What do you mean by positive eigenvector coefficients? Do you just mean positive coefficients? Can you explain what you're trying to fit?
Akzeptierte Antwort
Walter Roberson
am 12 Nov. 2017
Any scalar constant times an eigenvector remains an eigenvector. Therefore if you have an eigenvector that contains all negative values, multiply it by a negative scalar.
If you have an eigenvector that contains a mix of negative and positive values, you need to reject it (for your purpose) and move on to the next eigenvector. You would not do this with fmincon or the like: you would just look through the list of eigenvectors that were output to find one for which the sign() was the same for all of the elements.
Question: do you consider 0 to be positive for this purpose?
Weitere Antworten (0)
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!