x = [1 -2 2 -3 1 ] x = 1 -2 2 -3 1 A = vander(x) A = 1 1 1 1 1 16 -8 4 -2 1 16 8 4 2 1 81 -27 9 -3 1 1 1 1 1 1 c = x' c = 1 -2 2 -3 1 r = [-1 2, 1 0 3]; A = toeplitz(c,r) [Warning: First element of input column does not match first element of input row. Column wins diagonal conflict.] [> In toeplitz (line 31)] A = 1 2 1 0 3 -2 1 2 1 0 2 -2 1 2 1 -3 2 -2 1 2 1 -3 2 -2 1 A = hankel(c,r) [Warning: Last element of input column does not match first element of input row. Column wins anti-diagonal conflict.] [> In hankel (line 27)] A = 1 -2 2 -3 1 -2 2 -3 1 2 2 -3 1 2 1 -3 1 2 1 0 1 2 1 0 3 c c = 1 -2 2 -3 1 r r = -1 2 1 0 3 c c = 1 -2 2 -3 1 r r = -1 2 1 0 3 c = [r(1), r(5:-1:2)] c = -1 3 0 1 2 toeplitz(c,r) ans = -1 2 1 0 3 3 -1 2 1 0 0 3 -1 2 1 1 0 3 -1 2 2 1 0 3 -1 A = toeplitz(r, [r(1),r(end:-1:2)]) A = -1 3 0 1 2 2 -1 3 0 1 1 2 -1 3 0 0 1 2 -1 3 3 0 1 2 -1 A = toeplitz([r(1),r(end:-1:2)],r) A = -1 2 1 0 3 3 -1 2 1 0 0 3 -1 2 1 1 0 3 -1 2 2 1 0 3 -1 exit