fir1
From STX Wiki
< Programmer Guide | Command Reference | EVAL
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.