ヘルプ センターヘルプ センター
timeseries からイベントを削除
timeseries
tsout = delevent(tsin,eventname)
tsout = delevent(tsin,eventname,n)
例
tsout = delevent(tsin,eventname) は timeseries オブジェクト tsin の tsin.Events プロパティから tsdata.event オブジェクトを削除します。引数 eventname は、単一イベントの名前を含む文字ベクトル、またはイベント名の集合を含む cell 配列として指定できます。
tsin
eventname
tsin.Events
tsdata.event
tsout = delevent(tsin,eventname,n) は eventname という名前のイベントの tsin.Events プロパティから n 番目の tsdata.event オブジェクトを削除します。
n
すべて折りたたむ
timeseries とイベントを作成し、そのイベントを timeseries に追加します。
tsin = timeseries((1:5)'); tsevent = tsdata.event('MyEvent',1); tsin = addevent(tsin,tsevent); tsin.Events
EventData: [] Name: 'MyEvent' Time: 1 Units: 'seconds' StartDate: ''
MyEvent という名前のイベントを削除します。
MyEvent
tsout = delevent(tsin,'MyEvent'); tsout.Events
ans = 1x0 empty handle
入力 timeseries。スカラーとして指定します。
データ型: timeseries
イベント名。tsdata.event オブジェクトの名前を含む文字ベクトル、または複数のイベント名を含む cell 配列として指定します。
データ型: char | cell
char
cell
イベント回数。timeseries オブジェクトの n 番目の tsdata.event を表すスカラー整数として指定します。
データ型: double | single | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64
double
single
int8
int16
int32
int64
uint8
uint16
uint32
uint64
R2006a より前に導入
addevent | timeseries | tsdata.event
addevent
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office