Effacer les filtres
Effacer les filtres

How to create this matrix shown in the screenshot?

1 vue (au cours des 30 derniers jours)
Ayush Kumar
Ayush Kumar le 27 Avr 2022
Commenté : Ayush Kumar le 27 Avr 2022

Réponse acceptée

Prakash S R
Prakash S R le 27 Avr 2022
toeplitz() is your friend!
toeplitz([4 0 -2 0 0 0])
  4 commentaires
Torsten
Torsten le 27 Avr 2022
Logically, it should be
toeplitz([4, 0, -2, zeros(1,29)])
shouldn't it ?
Ayush Kumar
Ayush Kumar le 27 Avr 2022
Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Sparse Matrices dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by