append
沿时间维度串联 timeseries
对象
说明
ts = append(
通过将沿着时间维度的 ts1,ts2,…,tsN
)timeseries
对象 ts1
、ts2
等串联在一起来创建新的 timeseries
对象。
示例
追加两个 timeseries
对象
创建两个 timeseries
对象。
ts1 = timeseries(rand(5,1),[1 2 3 4 5],"Name","Series 1")
timeseries Common Properties: Name: 'Series 1' Time: [5x1 double] TimeInfo: tsdata.timemetadata Data: [5x1 double] DataInfo: tsdata.datametadata
ts2 = timeseries(rand(5,1),[6 7 8 9 10],"Name","Series 2")
timeseries Common Properties: Name: 'Series 2' Time: [5x1 double] TimeInfo: tsdata.timemetadata Data: [5x1 double] DataInfo: tsdata.datametadata
按时间追加两个 timeseries
对象。即使两个输入都有名称,输出 timeseries
对象也没有名称。
ts = append(ts1,ts2)
timeseries Common Properties: Name: 'unnamed' Time: [10x1 double] TimeInfo: tsdata.timemetadata Data: [10x1 double] DataInfo: tsdata.datametadata
显示所生成的时间样本。
ts.Time
ans = 10×1
1
2
3
4
5
6
7
8
9
10
输入参数
ts1,ts2,…,tsN
— 输入 timeseries
标量 timeseries
对象的列表
输入 timeseries
,指定为要串联的标量 timeseries
对象的列表。
输入
timeseries
的最后一个时间样本必须早于或等于列表中后续timeseries
的第一个时间。每个输入
timeseries
的样本大小必须相同。
数据类型: timeseries
扩展功能
基于线程的环境
使用 MATLAB® backgroundPool
在后台运行代码或使用 Parallel Computing Toolbox™ ThreadPool
加快代码运行速度。
版本历史记录
在 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)