Returns the Hankel matrix
A = makematrix_hankel ( n , x )
a 1-by-1 matrix of doubles, integer value, the size of the matrix to return
a m-by-1 or 1-by-m matrix of doubles, the inputs, with m==2*n-1
a n-by-n matrix of doubles, the Hankel matrix
Returns the Hankel matrix of size n. The positive diagonals of the Hankel matrix are constant.
For example, consider n=5 and m=9.
If x=[a b c d e f g h i]
,
then the associated 5-by-5 Hankel matrix is
A = [ a b c d e b c d e f c d e f g d e f g h e f g h i ]
The Hankel matrix satisfies
A(i,j) == A(i-1,j+1)
See makematrix_toeplitz for a similar matrix construction.
http://en.wikipedia.org/wiki/Hankel_matrix