主要内容

多速率和多级滤波器

抽取、插值、速率转换和滤波器组

多速率滤波器是数字滤波器,它们在更改数字信号的采样率时,不会在速率转换后的信号中引入混叠或成像。这些滤波器分为降低采样率的抽取器、提高采样率的插值器以及兼顾二者的采样率转换器。有关这些采样率转换操作及其在时域和频域中对信号的影响的详细信息,请参阅Overview of Multirate Filters。DSP System Toolbox™ 提供 MATLAB® System object 和 Simulink® 模块,用于实现抽取器、插值器和采样率转换器。通道化器、通道合成器、双通道半带滤波器组和多级滤波器组等高级滤波器技术将这些滤波器用作构建组件。

您可以采用二级或多级(而非单级)方法高效地实现具有大速率转换因子的多速率滤波器。当设计复杂(包含许多系数)且成本较高(每个输入采样需要进行许多乘法和加法运算)时,多级方法的实现效率比单级方法要高。有关详细信息,请参阅Overview of Multistage Filters

DSP System Toolbox 中的 designMultistageDecimatordesignMultistageInterpolator 函数自动确定滤波器的最佳配置,包括确定级数和各级的速率转换因子。最佳配置使计算工作量减至最少,您可以使用 cost 函数来衡量这种实现的成本。有关示例,请参阅Multistage Rate Conversion

对象

全部展开

dsp.FarrowRateConverterPolynomial sample rate converter with arbitrary conversion factor
dsp.FIRDecimatorPerform polyphase FIR decimation
dsp.FIRHalfbandDecimatorDecimate signal using polyphase FIR halfband filter
dsp.FIRHalfbandInterpolatorInterpolate signal using polyphase FIR halfband filter
dsp.FIRInterpolatorPerform polyphase FIR interpolation
dsp.FIRRateConverterPerform polyphase FIR sample rate conversion
dsp.IIRHalfbandDecimatorDecimate by factor of two using polyphase IIR
dsp.IIRHalfbandInterpolatorInterpolate by a factor of two using polyphase IIR
dsp.ParallelFilterCreate parallel sum filter structure (自 R2023b 起)
dsp.VariableFIRDecimatorPolyphase FIR decimation with tunable decimation factor (自 R2024b 起)
dsp.VariableFIRInterpolatorPolyphase FIR interpolation with tunable interpolation factor (自 R2024b 起)
dsp.ComplexBandpassDecimatorExtract a frequency subband using a one-sided (complex) bandpass decimator
dsp.DigitalDownConverterTranslate digital signal from intermediate frequency (IF) band to baseband and decimate it
dsp.DigitalUpConverterInterpolate digital signal and translate it from baseband to IF band
dsp.FilterCascadeCreate cascade of filter System objects
dsp.SampleRateConverterMultistage sample rate converter
dsp.CICCompensationDecimatorCompensate for CIC decimation filter using FIR decimator
dsp.CICCompensationInterpolatorCompensate for CIC interpolation filter using FIR interpolator
dsp.CICDecimatorDecimate signal using cascaded integrator-comb (CIC) filter
dsp.CICInterpolatorInterpolate signal using cascaded integrator-comb filter
dsp.ChannelizerPolyphase FFT analysis filter bank
dsp.ChannelSynthesizerPolyphase FFT synthesis filter bank
dsp.DyadicAnalysisFilterBankDyadic analysis filter bank
dsp.DyadicSynthesisFilterBankReconstruct signals from subbands
dsp.SubbandAnalysisFilterDecompose signal into high-frequency and low-frequency subbands
dsp.SubbandSynthesisFilterReconstruct signal from high-frequency and low-frequency subbands

函数

全部展开

coeffs以结构体形式返回滤波器 System object 系数
cost估计实现滤波器 System object 的成本
freqz离散时间滤波器 System object 的频率响应
filterAnalyzerAnalyze filters with Filter Analyzer app (自 R2024a 起)
infoInformation about filter System object
measureMeasure frequency response characteristics of filter System object
outputDelayDetermine output delay of single-rate or multirate filter (自 R2022a 起)
polyphasePolyphase decomposition of multirate filter
cascade滤波器 System object 的级联
ctf2sysobjCreate System object from cascaded transfer functions (自 R2025a 起)
parallelCreate parallel sum filter structure
designMultirateFIRDesign and implement antialiasing and anti-imaging lowpass FIR filter
designMultistageDecimatorMultistage decimator design
designMultistageInterpolatorMultistage interpolator design
fdesign.decimatorDecimator filter specification object
fdesign.interpolatorInterpolator filter specification
fdesign.rsrcRational-factor sample-rate converter specification

模块

全部展开

Farrow Rate ConverterPolynomial sample-rate converter with arbitrary conversion factor
FIR DecimationPerform polyphase FIR decimation
FIR Halfband DecimatorDecimate signal using polyphase FIR halfband filter
FIR Halfband InterpolatorInterpolate signal using polyphase FIR halfband filter
FIR InterpolationPerform polyphase FIR interpolation
FIR Rate ConversionPerform polyphase FIR sample rate conversion
IIR Halfband DecimatorDecimate signal using polyphase IIR halfband filter
IIR Halfband InterpolatorInterpolate signal using polyphase IIR halfband filter
Variable FIR DecimationPolyphase FIR decimation with tunable decimation factor (自 R2023a 起)
Variable FIR InterpolationPolyphase FIR interpolation with tunable interpolation factor (自 R2023a 起)
Complex Bandpass DecimatorExtract a frequency subband using a one-sided (complex) bandpass decimator
Digital Down-ConverterTranslate digital signal from intermediate frequency (IF) band to baseband and decimate it
Digital Up-ConverterInterpolate and translate digital signal from baseband to intermediate frequency (IF) band
Sample-Rate ConverterMultistage sample-rate conversion
CIC Compensation DecimatorCompensate for CIC filter using FIR decimator
CIC Compensation InterpolatorCompensate for CIC filter using FIR interpolator
CIC DecimationDecimate signal using cascaded integrator-comb filter
CIC InterpolationInterpolate signal using cascaded integrator-comb filter
ChannelizerPolyphase FFT analysis filter bank
Channel SynthesizerPolyphase FFT synthesis filter bank
Dyadic Analysis Filter BankDecompose signals into subbands with smaller bandwidths and slower sample rates or compute discrete wavelet transform (DWT)
Dyadic Synthesis Filter BankReconstruct signals from subbands with smaller bandwidths and slower sample rates or compute inverse discrete wavelet transform (IDWT)
Two-Channel Analysis Subband FilterDecompose signal into high-frequency and low-frequency subbands
Two-Channel Synthesis Subband FilterReconstruct signal from high-frequency and low-frequency subbands

主题

多速率模型中的采样率和帧速率

多速率滤波器

多级滤波器

滤波器组

数据流

延迟和时滞

  • 基于时间的调度和代码生成 (Simulink Coder)
    在设计用于代码生成的模型时,要考虑连续和离散模块的使用、采样时间、多速率模型的速率转换、离散化,以及在单任务模式和多任务模式之间进行选择。
  • Delay and Latency
    Configure the Simulink environment to minimize delay and increase simulation performance.

精选示例