EDA365电子论坛网

标题: MATLAB之Filter Data [打印本页]

作者: mytomorrow    时间: 2020-8-24 16:22
标题: MATLAB之Filter Data
Filter DataFilter Difference Equation(滤波器差分方程)

滤波器是一种数据处理技术,可以消除数据中的高频波动或从数据中去除特定频率的周期性趋势。

在MATLAB®中,滤波器功能根据以下差分方程过滤数据x的向量,该差分方程描述了抽头延迟线滤波器。


6 h) G7 y- l" J6 x" m


% q. g6 r) T8 _

在该等式中,a和b是滤波器系数的矢量,Na是反馈滤波器阶数,Nb是前馈滤波器阶数。 n是x的当前元素的索引。 输出y(n)是x和y的当前元素和先前元素的线性组合。

滤波函数使用指定的系数向量a和b来过滤输入数据x。



Moving-Average Filter of Traffic Data


+ Y$ \+ u* G0 N7 d滤波器功能是实现移动平均滤波器的一种方法,这是一种常见的数据平滑技术。
5 T( K' m5 V: w1 d6 }% bThe following difference equation describes a filter that averages time-dependent data with respect to the current hour and the three previous hours of data.

(以下差分方程描述了一个过滤器,它根据当前小时和前三个小时的数据平均时间相关数据。)

导入描述流量随时间变化的数据,并将第一列车辆计数分配给向量x。


Modify Amplitude of Data


8 {/ |' j+ }( x6 [3 c) |3 i& a( uThis example shows how to modify the amplitude of a vector of data by applying a transfer function.5 c; c' p' f0 t" T- v8 J: V' `
In digital signal processing, filters are often represented by a transfer function. The Z-transform of the difference equation

此示例显示如何通过应用传递函数来修改数据矢量的幅度。* u' D& e1 O1 f
在数字信号处理中,滤波器通常由传递函数表示。 差分方程的Z变换

+ t4 n4 f* N0 F7 x2 o

7 r& n. |% V8 h  D7 t6 g

is the following transfer function.

Use the transfer function

to modify the amplitude of the data in count.dat.

5 W. Z7 c  b5 S  J/ C

. y, }5 [5 u8 k. E" J
  k& G5 j  \) e; L
作者: kekek    时间: 2020-8-25 09:08
来学习一下




欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/) Powered by Discuz! X3.2