Filter löschen
Filter löschen

How to create this matrix shown in the screenshot?

1 Ansicht (letzte 30 Tage)
Ayush Kumar
Ayush Kumar am 27 Apr. 2022
Kommentiert: Ayush Kumar am 27 Apr. 2022

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Sparse Matrices finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by