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

How would I do the same for a 32x32 matrix?
The argument to toeplitz() is the first row of the desired matrix (in your case a 1x32 vector).
Logically, it should be
toeplitz([4, 0, -2, zeros(1,29)])
shouldn't it ?
Thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by