impulse

Functions

int main(int argc, char *argv[])

impulse [ option ]

  • -l int

    • output length \((1 \le L)\)

  • -m int

    • output order \((0 \le L - 1)\)

  • stdout

    • double-type impulse sequence

The output of this command is

\[ \begin{array}{ccccc} 1, & 0, & 0, & \ldots, & 0 \end{array} \]
where the output length is \(L\). If \(L\) is not given, an infinite impulse sequence is generated.

In the below example, the impulse response of a ditital filter is calculated and shown on the screen.

impulse -l 256 | dfs -a 1 0.9 -b 1 2 1 | dmp +d
Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

step train ramp sin