how to create a symmetric Toeplitz matrix with bounds on eigenvalues?
1 回表示 (過去 30 日間)
古いコメントを表示
Is there a way to creat a symmetic Toeplitz matrix of size 400 X 400 with real entries and its largest eigenvalue is 5 and the smallest eigenvalue is -5?
1 件のコメント
Matt J
2020 年 1 月 27 日
The question as originally posted:
"Is there a way to creat a symmetic Toeplitz matrix of size 400 X 400 with real entries and its largest eigenvalue is 5 and the smallest eigenvalue is -5?"
採用された回答
Matt J
2020 年 1 月 24 日
R=fft(eye(400))/sqrt(400);
e=zeros(1,400);
e(2)=-10; e(end-1)=+10;
e=ifftshift(e);
T=(R'*diag(e)*R);
T=real((T+T.')/2);
>> min(eig(T))
ans =
-5.0000
>> max(eig(T))
ans =
5.0000
>> norm(T-T.')
ans =
0
2 件のコメント
その他の回答 (1 件)
Christine Tobler
2020 年 1 月 27 日
You can use the MATLAB function toeplitz with one input argument (two-input returns a non-symmetric Toeplitz matrix).
1 件のコメント
Christine Tobler
2020 年 1 月 27 日
@Matt J, thanks for clarifying. When I was looking at this post 2 hours ago, it was only asking for symmetric Toeplitz matrix, without the condition on the eigenvalues.
参考
カテゴリ
Help Center および File Exchange で Particle & Nuclear Physics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!