Toeplitz Matrix
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
hunterilmenau Abdulkarim
il 13 Mag 2011
Commentato: Sibo Van Gool
il 8 Ott 2021
Hallo all, I'm trying to create this matrix (Toeplitz Matrix):
1 0 0 0
2 1 0 0
3 2 1 0
0 3 2 1
0 0 3 2
0 0 0 3 how can I achieve that ?
thanks for help
0 Commenti
Risposta accettata
Sean de Wolski
il 13 Mag 2011
T =tril(toeplitz([1 2 3 0 0 0 ],[1 2 3 0]))
2 Commenti
Sean de Wolski
il 13 Mag 2011
Oleg's method is better because it doesn't require the call to tril:
v = 1:5;
T = toeplitz([v(:);zeros(numel(v),1)],zeros(numel(v)+1,1))
Più risposte (2)
hunterilmenau Abdulkarim
il 13 Mag 2011
1 Commento
Sibo Van Gool
il 8 Ott 2021
For a more generalized version:
t = toeplitz([h zeros(1,length(h)-1)],[h(1) zeros(1, length(h)-1)])
Vedere anche
Categorie
Scopri di più su Linear Algebra in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!