How to create this matrix shown in the screenshot?

3 visualizzazioni (ultimi 30 giorni)

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Sparse Matrices in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by