# hankel

## Purpose

Hankel matrix.

## Synopsis

    H = hankel(c)
    H = hankel(c,r)

## Description

A Hankel matrix is a matrix that is symmetric and constant across the anti-diagonals, and has elements`h(i,j) = r(i+j-1)`, where vector `r` completely determines the Hankel matrix.

`hankel(c)` returns the square Hankel matrix whose first column is `c` and whose elements are zero below the first anti-diagonal.

`hankel(c`,`r)` returns a Hankel matrix whose first column is `c` and whose last row is `r`. If the last element of `c` differs from the first element of `r`, the last element of `c` wins the disagreement.

## Examples

A Hankel matrix with anti-diagonal disagreement is

    c = 1:3; r = 7:10;
    h = hankel(c,r)

    h =
        1    2    3    8
        2    3    8    9
        3    8    9   10

## See Also

`hadamard`, `toeplitz`, `vander`

(c) Copyright 1994 by The MathWorks, Inc.