How to create a Toeplitz matrix?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Omar B.
el 11 de Feb. de 2020
Comentada: Omar B.
el 11 de Feb. de 2020
How to create a symmetric positive definite Toeplitz matrix with entries ?
0 comentarios
Respuesta aceptada
Jon
el 11 de Feb. de 2020
Editada: Jon
el 11 de Feb. de 2020
You can use MATLAB toeplitz function for this.
See the documentation by typing doc toeplitz on the command line.
Since your toeplitz matrix is symmetric you just need to define the first row, let's call it r and then use
A = toeplitz(r)
Using the formula you have given it should be quite straight forward to assign r. In your formula just set i = 1 since you just want to define the first row, and then let j go from 1 to 500. So something like
i = 1;
jCol = 1:500
r = 1./(1 + abs(1 - jCol)) % note ./ does element by element division
A = toeplitz(r)
Más respuestas (0)
Ver también
Categorías
Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!