<< fftconv FOSSEE Signal Processing Toolbox fftn >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > fftfilt

fftfilt

Performs FFT-based FIR filtering using overlap-add method

Calling Sequence

Parameters

x:

real|complex numbers - vector|matrix

b:

real|complex numbers - vector|matrix

n:

positive integer

Description

y = fftfilt(b,x) filters the data in vector x with the filter described by coefficient vector b. y = fftfilt(b,x,n) uses n to determine the length of the FFT.

Examples

1) Filtering a sine wave
x = sin(1:2000);
b = [1 1/2];
y = fftfilt(b,x);
2) Multiple filters (1,1/3) and (1/4,1/5);
x = sin(1:2000);
b = [1 1/4;1/3 1/5];
y = fftfilt(b,x);

Authors


Report an issue
<< fftconv FOSSEE Signal Processing Toolbox fftn >>