MATLAB ヘルプ センター
tscollection からサンプルを削除
tscollection
tscout = delsamplefromcollection(tscin,'Index',ind)
tscout = delsamplefromcollection(tscin,'Value',timevals)
tscout = delsamplefromcollection(tscin,'Index',ind) は tscollection オブジェクトからサンプルを削除します。ind は削除するサンプルに対応する時間ベクトル tscin のインデックスを指定します。
tscin
ind
例
tscout = delsamplefromcollection(tscin,'Value',timevals) は、timeval の時間値に対応するサンプルを削除します。
timevals
timeval
すべて折りたたむ
2 つの timeseries オブジェクトから tscollection オブジェクトを作成します。次に、5 番目のサンプルを削除します。
timeseries
ts1 = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5,... 'Name','Acceleration'); ts2 = timeseries([3.2 4.2 6.2 8.5 1.1]',1:5,... 'Name','Speed'); tscin = tscollection({ts1;ts2}); tscout = delsamplefromcollection(tscin,'Index',5)
Time Series Collection Object: unnamed Time vector characteristics Start time 1 seconds End time 4 seconds Member Time Series Objects: Acceleration Speed
入力 tscollection。スカラーとして指定します。
時間ベクトル インデックス。スカラーまたはベクトルとして指定します。
サンプル時間。数値スカラーまたは数値ベクトル、あるいは日付文字ベクトルの cell 配列として指定します。有効な日付の文字ベクトルと string の形式は次のとおりです。
dd-mmm-yyyy HH:MM:SS
01-Mar-2000 15:45:17
dd-mmm-yyyy
01-Mar-2000
mm/dd/yy
03/01/00
mm/dd
03/01
HH:MM:SS
15:45:17
HH:MM:SS PM
3:45:17 PM
HH:MM
15:45
HH:MM PM
3:45 PM
mmm.dd,yyyy HH:MM:SS
Mar.01,2000 15:45:17
mmm.dd,yyyy
Mar.01,2000
mm/dd/yyyy
03/01/2000
データ型: double | single | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | cell
double
single
int8
int16
int32
int64
uint8
uint16
uint32
uint64
cell
R2006a より前に導入
timeseries | addsampletocollection | tscollection
addsampletocollection
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ