SHPFREQ

Purpose:

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

Syntax:

SHPFREQ(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: shpfreq(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: shpfreq(100, 10000)

 

returns 10000 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: shpfreq(10, 6000, 200, 1)

 

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

Remarks:

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

 

See SHP to process data with a single pole high pass digital filter.

 

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

See Also:

DADiSP/Filters

GRTSQR

SLP

SLPFREQ

SHP