Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Highpass Filter

Design FIR or IIR highpass filter

Library

Filtering / Filter Designs

dspfdesign

Description

The Highpass Filter block independently filters each channel of the input signal over time using the given design specifications.

You can set the Filter type parameter of the block to design to implement the block as an FIR or IIR highpass filter. The block designs the filter based on the parameters specified in the block dialog box.

The input signal can be a real- or complex-valued column vector or matrix. If the input signal is a matrix, each column of the matrix is treated as an independent channel. The block supports fixed-point operations, HDL code generation, and ARM® Cortex® code generation. To learn more about ARM Cortex code generation, see ARM Cortex-M and ARM Cortex-A Optimization

Algorithm

This block brings the capabilities of the dsp.HighpassFilter System object™ to the Simulink® environment.

For information on the algorithms used by this block, see the Algorithms section of dsp.HighpassFilter.

Dialog Box

Main Tab

Filter type

Type of highpass filter.

  • FIR (default) — Design an FIR highpass filter.

  • IIR — Design an IIR highpass filter.

Design minimum order filter

When you select this check box, the block designs a filter with the minimum order that the specified passband, stopband frequency, passband ripple, and stopband attenuation. Set these specifications using the corresponding parameters. When you clear this check box, specify the order of the filter in Filter order.

By default, this check box is selected.

Filter order

Filter order of highpass filter, specified as a positive scalar integer. You can specify a filter order only when the Design minimum order filter check box is not cleared. The default is 50.

Stopband edge frequency (Hz)

Stopband edge frequency of the highpass filter, specified as a real positive scalar in Hz. The value of the stopband edge frequency in Hz must be less than the passband frequency. You can specify the stopband edge frequency only when the Design minimum order filter check box is selected. The default is 8e3.

Passband edge frequency (Hz)

Passband edge frequency of the highpass filter, specified as a real positive scalar in Hz. The passband edge frequency must be less than half the value of the Input sample rate (Hz) and greater than the value of the Stopband edge frequency (Hz). The default is 12e3.

Minimum stopband attenuation (dB)

Minimum attenuation in the stopband, specified as a real positive scalar in dB. The default is 80.

Maximum passband ripple (dB)

Maximum ripple of the filter response in the passband, specified as a real positive scalar in dB. The default is 0.1.

Inherit sample rate from input

When you select this check box, the block inherits its sample rate from the input signal. When you clear this check box, you specify the sample rate in Input sample rate (Hz).

Input sample rate (Hz)

Input sample rate, specified as a scalar in Hz. The default is 44100.

View Filter Response

Opens the Filter Visualization Tool FVTool and displays the magnitude/phase response of the Highpass Filter. The response is based on the block dialog box parameters. Changes made to these parameters update FVTool.

To update the magnitude response while FVTool is running, modify the dialog box parameters and click Apply.

Simulate using

Type of simulation to run. You can set this parameter to:

  • Interpreted execution (default)

    Simulate model using the MATLAB®  interpreter. This option shortens startup time but has slower simulation speed than Code generation.

  • Code generation

    Simulate model using generated C code. The first time you run a simulation, Simulink generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but provides faster simulation speed than Interpreted execution.

Data Types Tab

Rounding mode

Rounding method for the output fixed-point operations. The rounding methods are Ceiling, Convergent, Floor, Nearest, Round, Simplest, and Zero. The default is Floor.

Coefficients

Fixed-point data type of the coefficients, specified as one of the following:

  • fixdt(1,16) (default) — Signed fixed-point data type of word length 16, with binary point scaling. The block determines the fraction length automatically from the coefficient values in such a way that the coefficients occupy maximum representable range without overflowing.

  • fixdt(1,16,0) — Signed fixed-point data type of word length 16 and fraction length, 0. You can change the fraction length to any other integer value.

  • <data type expression> — Specify the data type using an expression that evaluates to a data type object, for example, numeric type (fixdt([ ],16, 15)). Specify the sign mode of this data type as [ ] or true.

  • Refresh Data Type — Refresh to the default data type.

Click the Show data type assistant button to display the data type assistant, which helps you set the stage input parameter.

See Specify Data Types Using Data Type Assistant for more information.

Supported Data Types

PortSupported Data Types

Input

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed or unsigned)

Output

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed only)

See Also

dsp.HighpassFilterDSP System Toolbox
dsp.LowpassFilterDSP System Toolbox
Lowpass FilterDSP System Toolbox

Introduced in R2015b

Was this topic helpful?