Hamming window

### 21.5.7 Hamming window

The hamming_window command applies the Hamming window function to a sequence or its segment.

- hamming_window takes one mandatory argument and two optional arguments:
  - v, a real vector with length n.
  - Optionally, m, N, a sequence of two integers (by default, m=0 and N=n).
- hamming_window returns the elementwise product of [vm,vm+1,…,vm+N−1] and the vector w of length N defined by

  wk=α−β cos | ⎛ ⎜ ⎜ ⎝ |
  2 k π
  N−1
  | ⎞ ⎟ ⎟ ⎠

  for k=0,1,…,N−1, where α=0.54 and β=1−α=0.46.

#### Example

listplot(hamming_window([1$1000]))