MATLAB: Toeplitz Matrix

toeplitz

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

Best Answer

T =tril(toeplitz([1 2 3 0 0 0 ],[1 2 3 0]))