Diagonally dominant matrix with high condition number

Can diagonally dominant matrix get a high condition number(e.g > 100000).

Answers (1)

Hello othello,
yes.
a = [2e5 .1;
.1 1];
cond(a)
ans = 2.0000e+05

2 Comments

Ah thanks ... the difference between smallest and largest eigenvalues is large. I missed that.
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

Asked:

on 10 May 2017

Commented:

on 13 May 2017

Community Treasure Hunt

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

Start Hunting!