Diagonally dominant matrix with high condition number

1 view (last 30 days)
Can diagonally dominant matrix get a high condition number(e.g > 100000).

Answers (1)

David Goodmanson
David Goodmanson on 11 May 2017
Hello othello,
yes.
a = [2e5 .1;
.1 1];
cond(a)
ans = 2.0000e+05
  2 Comments
othello nag
othello nag on 11 May 2017
Edited: othello nag on 11 May 2017
Ah thanks ... the difference between smallest and largest eigenvalues is large. I missed that.
David Goodmanson
David Goodmanson on 13 May 2017
although in general it's not the eigenvalues that directly relate to cond:
m = [2 1e-5
1e5 2];
>> eig(m)
ans =
3
1
>> cond(m)
ans = 3.3333e+09

Sign in to comment.

Categories

Find more on Operating on Diagonal 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!