SLPFREQ

Purpose:

Displays the frequency response of a single pole digital low pass filter.

Syntax:

SLPFREQ(fc, N, fs, mag)

fc

-

A real, the cutoff frequency in Hertz.

N

 

Optional. An integer, the number of frequency samples. Defaults to 4096.

fs

-

Optional. A real, the sample rate of the filter. Defaults to fc * 1000.

mag

-

Optional. An integer, the log scale flag.

0:

Return complex response.

1:

Return log-magnitude response (default).

Returns:

A series, the frequency response of the filter.

Example:

W1: slpfreq(100)

 

returns 4096 samples of the magnitude of the frequency response for a single pole high pass filter with a cutoff frequency of 100 Hz. The result is displayed on a log scale.

Example:

W1: slpfreq(100, 10000)

 

returns 10000 samples of the magnitude of the frequency response for a single pole low pass filter with a cutoff frequency of 100 Hz. The result is displayed on a log scale.

Example:

W1: slpfreq(10, 6000, 200, 1)

 

returns 6000 samples of the complex frequency response for a single pole low pass filter with a cutoff frequency of 10 Hz and a sample rate of 200 Hz.

Remarks:

The single pole analog low pass filter is implemented in the digital domain using the impulse invariance technique.

 

See SLP to process data with a single pole low pass digital filter.

 

See DADiSP/Filters for additional digital filter design techniques and implementations.

See Also:

DADiSP/Filters

GRTSQR

SLP

SHP

SHPFREQ