positive semidefinite matrices returning negative eigen values with eig function

I have asymmetric, positive semidefinite matrix A. Theoretically, all its eigenvalues should be greater than or equal to zero. But when I use eig function,some of the resultant eigenvalues are negative in sign.I can use svd too and when I used SVD, the eigen values turn out to be positive. I need the eigenvectors too. Can I just take the absolute values of the eigenvalues obtained from the eig command and process further.

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

質問済み:

2016 年 1 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by