Eigs function returns complex numbers when computing the largest eigenvalue

2 ビュー (過去 30 日間)
Pavlos
Pavlos 2015 年 10 月 19 日
回答済み: Rupesh Rupesh 2017 年 12 月 19 日
Hello, i am contructing an adjacency matrix from real networks as follows:
x = dlmread('file.txt');
left = x(:,1)+1;
right = x(:,2)+1;
Adj = sparse(left,right,1,7319,7319);
eigs(Adj)
The networks are directed, some of them are very sparse while several others may also be disconnected. The problem is that for some networks i get the largest eigenvalue as a complex number. I have read several related threads to my post but i couldn't properly understand the quialitative reason.

回答 (2 件)

John D'Errico
John D'Errico 2015 年 10 月 19 日
Your matrix is not symmetric. The eigenvalues of a non-symmetric matrix will often be complex numbers.

Rupesh Rupesh
Rupesh Rupesh 2017 年 12 月 19 日
Try using svd

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by