i have the following sequence in matlab:
n=100;
d=ones(n,1);
A=diag(d,1)+diag(d,-1);
e=eig(A);
plot(-n/2:n/2,e,'.')
It gives me this figure that i have attached.
I need to find a formula for the own values of this matix and i don't know how.
i have the following sequence in matlab:
n=100;
d=ones(n,1);
A=diag(d,1)+diag(d,-1);
e=eig(A);
plot(-n/2:n/2,e,'.')
It gives me this figure that i have attached.
I need to find a formula for the own values of this matix and i don't know how.
He is asking for an explicit formula for the eigen values of NxN matrices with zeros everwhere except for the diagonals above and below the principle diagonal where all the elements are 1.
Which of course is not a Matlab question but is a linear algebra question, so I suppose I ought to move this thread.
CB