Main Content

中位数Filter

中位数filter

  • 库:
  • DSP System Toolbox / Filtering / Filter Designs

    DSP System Toolbox / Statistics

  • 中位数Filter block

Description

The中位数Filterblock computes the moving median of the input signal along each channel independently over time. The block uses the sliding window method to compute the moving median. In this method, a window of specified length moves over each channel sample by sample, and the block computes the median of the data in the window. This block performs median filtering on the input data over time. For more details, seeAlgorithms.

Ports

Input

expand all

Data over which the block computes moving median. The block accepts real-valued or complex-valued multichannel inputs, that is,m-by-nsize inputs, wherem≥ 1, andn≥ 1. The block also accepts variable-size inputs. During simulation, you can change the size of each input channel. However, the number of channels cannot change.

Data Types:single|double
Complex Number Support:Yes

Output

expand all

The size of the moving median output matches the size of the input. The block uses the sliding window method to compute the moving median. For more details, seeAlgorithms.

Data Types:single|double
Complex Number Support:Yes

Parameters

expand all

Window lengthspecifies the length of the sliding window in samples.

  • 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 thanInterpreted execution.

  • Interpreted execution

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

Block Characteristics

Data Types

double|single

Multidimensional Signals

No

Variable-Size Signals

Yes

Algorithms

expand all

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2016b