Skip to Main Content Skip to Search
Product Documentation

append - Class: timeseries

Concatenate time series objects in time dimension

Syntax

ts = append(ts1,ts2, ... tsn)

Description

ts = append(ts1,ts2, ... tsn) creates a new timeseries object by concatenating timeseries ts1, ts2, and so on, along the time dimension.

Tips

Input Arguments

ts1

The first timeseries object that you want to append.

ts2

The second timeseries object that you want to append.

tsn

The nth timeseries object that you want to append.

Output Arguments

ts

The timeseries object that results from appending the input timeseries objects.

Examples

After creating timeseries objects, ts1 and ts2, append them:

ts1 = timeseries(rand(5,1),[1 2 3 4 5]);
ts2 = timeseries(rand(5,1),[6 7 8 9 10]);
ts3 = append(ts1, ts2)

See Also

timeseries

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS