How to create this matrix shown in the screenshot?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponse acceptée
Prakash S R
le 27 Avr 2022
toeplitz() is your friend!
toeplitz([4 0 -2 0 0 0])
4 commentaires
Torsten
le 27 Avr 2022
Logically, it should be
toeplitz([4, 0, -2, zeros(1,29)])
shouldn't it ?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sparse Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!