filter
修改 timeseries
对象的频率成分
说明
示例
应用传递函数
此示例将以下传递函数应用于一组数据:
基于 count.dat
中的矩阵 count
创建一个 timeseries
对象。
load count.dat
tsin = timeseries(count(:,1),[1:24]);
输入传递函数的分母和分子的系数。以 的升幂来对系数排序,以表示 和 。
a = [1 0.2]; b = [2 3];
使用 filter
应用传递函数,并将原始数据与滤波后的数据进行比较。
tsout = filter(tsin,b,a); plot(tsin) hold on plot(tsout) legend('Original Data','Filtered Data','Location','NorthWest')
输入参数
tsin
— 输入 timeseries
标量
输入 timeseries
,指定为标量。必须对 tsin
进行均匀采样。
数据类型: timeseries
b
— 分子系数
标量 | 向量
传递函数的分子系数,指定为标量或向量。
a
— 分母系数
标量 | 向量
传递函数的分母系数,指定为标量或向量。
ind
— 行或列索引
标量 | 向量
行或列索引,指定为正整数数值标量或向量。ind
表示列向数据的列索引(tsin.IsTimeFirst
为 true
时)或行向数据的行索引(tsin.IsTimeFirst
为 false
时)。
数据类型: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
详细信息
版本历史记录
在 R2006a 之前推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)