append
timeseries
オブジェクトを時間順に連結
説明
ts = append(
は、ts1,ts2,…,tsN
)timeseries
オブジェクト ts1
、ts2
などを時間次元に沿って連結して、新しい timeseries
オブジェクトを作成します。
例
2 つの timeseries
オブジェクトの追加
2 つの 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
2 つの timeseries
オブジェクトを時間で追加します。2 つの入力に名前がある場合でも、出力 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)