How to create this matrix shown in the screenshot?
1 回表示 (過去 30 日間)
古いコメントを表示

0 件のコメント
採用された回答
Prakash S R
2022 年 4 月 27 日
toeplitz() is your friend!
toeplitz([4 0 -2 0 0 0])
4 件のコメント
Torsten
2022 年 4 月 27 日
Logically, it should be
toeplitz([4, 0, -2, zeros(1,29)])
shouldn't it ?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!