MATLAB Function Reference |

**Syntax**

**Description**

```
H = hankel(c)
```

returns the square Hankel matrix whose first column is `c`

and whose elements are zero below the first anti-diagonal.

```
H = 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`

prevails.

**Definition**

A Hankel matrix is a matrix that is symmetric and constant across the anti-diagonals, and has elements `h(i,j)`

`=`

`p(i+j-1)`

, where vector `p = [c r(2:end)]`

completely determines the Hankel matrix.

**Examples**

A Hankel matrix with anti-diagonal disagreement is

**See Also**

hadamard | hdf |

© 1994-2005 The MathWorks, Inc.