How to created a specific symmetric Toeplitz matrix?

조회 수: 2 (최근 30일)
Omar B.
Omar B. 2020년 8월 9일
편집: Are Mjaavatten 2020년 8월 11일
Hi , Could you please help to simplify the following code. I created a symmetric Toeplitz matrix where its eigenvalues [ 0.28878, 1.7141].
I want the same matrix, so can we create it in a simple way. For example, can we get the same matrix when we just multiply a scalar by toeplitz(R)?
N=200;
Ns=1:N;
R=1./Ns;
D=toeplitz(R);
B=D+3*pi/7 *eye(N);
A=1/6 * B;
s=eig(A)
  댓글 수: 1
Are Mjaavatten
Are Mjaavatten 2020년 8월 11일
편집: Are Mjaavatten 2020년 8월 11일
A = toeplitz(R)/6+pi/14*eye(N)
A trivial simplification of your code, but I doubt that it is possible to do much better.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Eigenvalues & Eigenvectors에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by