How to create this matrix shown in the screenshot?

1 visualización (últimos 30 días)
Ayush Kumar
Ayush Kumar el 27 de Abr. de 2022
Comentada: Ayush Kumar el 27 de Abr. de 2022

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Sparse Matrices en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by