Design FIR or IIR highpass filter
Filtering / Filter Designs
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
Type of highpass filter.
FIR (default) —
Design an FIR highpass filter.
IIR — Design an
IIR highpass 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 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
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
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
Minimum attenuation in the stopband, specified as a real positive
scalar in dB. The default is
Maximum ripple of the filter response in the passband, specified
as a real positive scalar in dB. The default is
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, specified as a scalar in Hz. The default
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.
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
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
Rounding method for the output fixed-point operations. The rounding
Zero. The default is
Fixed-point data type of the coefficients, specified as one of the following:
— Signed fixed-point data type of word length
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.
Signed fixed-point data type of word 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 (
the sign mode of this data type as
[ ] or
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 (Simulink) for more information.
|Port||Supported Data Types|