How to create this matrix shown in the screenshot?

1 次查看(过去 30 天)

采纳的回答

Prakash S R
Prakash S R 2022-4-27
toeplitz() is your friend!
toeplitz([4 0 -2 0 0 0])
  4 个评论
Torsten
Torsten 2022-4-27
Logically, it should be
toeplitz([4, 0, -2, zeros(1,29)])
shouldn't it ?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sparse Matrices 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by