append
timeseries オブジェクトを時間順に連結
説明
ts = append( は、ts1,ts2,…,tsN)timeseries オブジェクト ts1、ts2 などを時間次元に沿って連結して、新しい 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: [1x1 tsdata.timemetadata]
Data: [5x1 double]
DataInfo: [1x1 tsdata.datametadata]
More properties, Methods
ts2 = timeseries(rand(5,1),[6 7 8 9 10],"Name","Series 2")
timeseries
Common Properties:
Name: 'Series 2'
Time: [5x1 double]
TimeInfo: [1x1 tsdata.timemetadata]
Data: [5x1 double]
DataInfo: [1x1 tsdata.datametadata]
More properties, Methods
2 つの timeseries オブジェクトを時間で追加します。2 つの入力に名前がある場合でも、出力 timeseries オブジェクトには名前はありません。
ts = append(ts1,ts2)
timeseries
Common Properties:
Name: 'unnamed'
Time: [10x1 double]
TimeInfo: [1x1 tsdata.timemetadata]
Data: [10x1 double]
DataInfo: [1x1 tsdata.datametadata]
More properties, Methods
結果の時間サンプルを表示します。
ts.Time
ans = 10×1
1
2
3
4
5
6
7
8
9
10
入力引数
入力 timeseries。連結するスカラー timeseries オブジェクトのリストとして指定します。
入力
timeseriesの最後の時間サンプルは、リスト内にある次のtimeseriesの最初の時間以前でなければなりません。各入力
timeseriesのサンプル サイズは同じでなければなりません。
データ型: timeseries
拡張機能
スレッドベースの環境
MATLAB® の backgroundPool を使用してバックグラウンドでコードを実行するか、Parallel Computing Toolbox™ の ThreadPool を使用してコードを高速化します。
バージョン履歴
R2006a より前に導入
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)