fir1

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 17:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search
fir1

A Finite Impulse Response (FIR) filter.

Usage:

fir1(f1, f2, n)

Function:

Computes the filter coefficients for a FIR filter with cutoff frequencies f1, f2 and the length 2*n+1.

Result:

A vector with 2*n+1 filter coefficients.

Usage:

fir1(f1, f2, n, x)

Function:

Computes the filter coefficients for a FIR filter with cutoff frequencies f1, f2 and the length 2*n+1 and applies the computed filter to the signal vector x.

Result:

The FIR filtered signal.

Return Type:

Same as x.

Navigation menu

Personal tools