主要内容

dsp.AllpoleFilter

IIR Filter with no zeros

描述

Thedsp.AllpoleFilterOBJect filters each channel of the input using allpole filter implementations.

要过滤输入的每个通道:

  1. 创建dsp.AllpoleFilterOBJect and set its properties.

  2. Call the object with arguments, as if it were a function.

要了解有关系统对象如何工作的更多信息,请参阅What Are System Objects?

Creation

描述

example

allpole= DSP.AllpoleFilterreturns an allpole filter System object™,allpole, which independently filters each channel of the input over successive calls to the algorithm. This System object uses a specified allpole filter implementation.

allpole= DSP.AllpoleFilter(名称,价值)returns an allpole filter System object,allpole, with each property set to the specified value.

特性

展开全部

除非另有说明,否则属性是不可否认,这意味着您在调用对象后不能更改其值。呼叫时锁定对象,然后发布功能解锁它们。

如果财产是可调, you can change its value at any time.

For more information on changing property values, seeSystem Design in MATLAB Using System Objects

将过滤器结构指定为|之一Direct form|直接形式转置|Lattice AR。分析方法是not supported for fixed-point processing if the structure isDirect form或者直接形式转置。此属性不可降低。

将分母系数指定为数字行矢量。

Tunable:Yes

Dependencies

当结构属性设置为之一时,此属性适用Direct form|直接形式转置

数据类型:single|双倍的|int8|INT16|INT32|INT64|uint8|UINT16|uint32|uint64
复杂的数字支持:金宝appYes

将晶格过滤器系数指定为数字行向量。

Tunable:Yes

Dependencies

This property is applicable when the结构属性设置为Lattice AR

数据类型:single|双倍的|int8|INT16|INT32|INT64|uint8|UINT16|uint32|uint64
复杂的数字支持:金宝appYes

指定过滤器状态的初始条件。

You can specify the initial conditions as a scalar, vector, or matrix. If you specify a scalar value, this System object initializes all delay elements in the filter to that value. You can also specify a vector whose length equals the number of delay elements in the filter. When you do so, each vector element specifies a unique initial condition for the corresponding delay element. The object applies the same vector of initial conditions to each channel of the input signal.

You can also specify a matrix with the same number of rows as the number of delay elements in the filter and one column for each channel of the input signal. In this case, each element specifies a unique initial condition for the corresponding delay element in the corresponding channel.

Tunable:Yes

数据类型:single|双倍的|int8|INT16|INT32|INT64|uint8|UINT16|uint32|uint64
复杂的数字支持:金宝appYes

指定分母系数固定点数据类型为之一Same word length as input|风俗。此属性不可降低。

将反射系数定义数据类型指定为之一Same word length as input|风俗。此属性不可降低。

定点属性

将产品定义数据类型指定为|完整的精度|Same as input|风俗|. This property is nontunable.

将累加器定义点数据类型指定为|之一完整的精度|Same as input|Same as product|风俗|. This property is nontunable.

将输出定点数据类型指定为|与蓄能器相同|Same as input|风俗|. This property is nontunable.

将状态定点数据类型指定为|Same as input|与蓄能器相同|风俗。此属性不可降低。

Specify the denominator coefficients fixed-point type as an autosigned数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

This property is applicable when the系数数据属性是风俗

Specify the denominator coefficients fixed-point type as an autosigned数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

This property is applicable when theReflectionCoefficientsDataType属性是风俗

将产品定义点类型指定为自动签名的缩放数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

当您设置该属性时,此属性将适用ProductDataTypeproperty to风俗

将累加器定义点类型指定为自动签名数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

当您设置该属性时,此属性将适用AccumulatorDataTypeproperty to风俗

Specify the state fixed-point type as an autosigned scaled数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

当您设置该属性时,此属性将适用陈述property to风俗

Specify the output fixed-point type as an autosigned scaled数字型(定点设计师)OBJect. This property is nontunable.

Dependencies

当您设置该属性时,此属性将适用OutputDataTypeproperty to风俗

用法

描述

example

y= allpole(x)filters the real or complex input signalx使用allpole滤波器产生输出y

输入参数

展开全部

数据输入,指定为向量或矩阵。该对象还接受可变大小输入。对象锁定后,您可以更改每个输入通道的大小,但是无法更改通道数。

When the input data is of a fixed-point type, it must be signed. The allpole filter object operates on each channel of the input signal independently over successive calls to the algorithm.

数据类型:single|双倍的|int8|INT16|INT32|uint8|UINT16|uint32|fi
复杂的数字支持:金宝appYes

输出参数

展开全部

过滤输出,返回为矢量或矩阵。输出信号的大小,数据类型和复杂性匹配输入信号的大小。

数据类型:single|双倍的|int8|INT16|INT32|uint8|UINT16|uint32|fi
复杂的数字支持:金宝appYes

对象功能

To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object namedOBJ,使用此语法:

释放(OBJ)

展开全部

弗雷克斯 离散时间过滤器的频率响应系统对象
fvtool 可视化DSP过滤器的频率响应
impz 离散时间过滤器的脉冲响应系统对象
info Information about filter系统对象
coeffs Returns the filter系统对象结构中的系数
成本 估计实施过滤器的成本系统对象
grpdelay 离散时间过滤器的组延迟响应系统对象
阶段 离散时间过滤器的相位响应系统对象(未包装)
Run系统对象算法
发布 Release resources and allow changes to系统对象property values and input characteristics
重置 重置内部状态系统对象

例子

全部收缩

使用Allpole滤波器将低通滤波器应用于具有两个正弦频率的波形。

Note:如果您使用的是R2016A或较早的版本,请用等效步骤语法替换每个对象的调用。例如,OBJ(x)变成步骤(obj,x)

t = (0:1000)./8e3; xin = sin(2*pi*1e3*t)+sin(2*pi*3e3*t); src = dsp.SignalSource(xin', 4); sink = dsp.SignalSink; allpole = dsp.AllpoleFilter; tt = (-25:25)'; xsinc = 0.4*sinc(0.4*tt); asinc = lpc(xsinc,51); allpole.Denominator = asinc; sa = spectrumAnalyzer('采样率',8E3,。。。'Method','韦尔奇',。。。“ plotastwosidedspectrum”,错误的,。。。'OverlapPercent',80,“频谱”,'dBW',。。。'ylimits',[-150 50]);尽管〜ISDONE(src)input = src();FilterEdOutput = allpole(输入);接收器(FilterEdOutput);SA(FilterDoutput)结尾

filteredResult = sink.buffer;fvtool(allpole,'fs',8000)

Figure Magnitude Response (dB) contains an axes object. The axes object with title Magnitude Response (dB) contains an object of type line.

算法

该对象实现了算法,输入和输出Allpole Filter块参考页。对象属性对应于块参数。

Extended Capabilities

Version History

在R2012B中引入