getTimeStr
tsdata.event
時間のクエリ
説明
例
イベント時間
tsdata.event
オブジェクトの配列を作成して、その時間を秒単位で表示します。
tse1 = tsdata.event('MyEvent',1); tse2 = tsdata.event('MyEvent',2); tse = [tse1 tse2]; eventtimes = getTimeStr(tse,'seconds')
eventtimes = 1x2 cell
{'1.000'} {'2.000'}
入力引数
tse
— 入力 tsdata.event
配列
入力 tsdata.event
。配列として指定します。
timeunits
— 時間単位
'weeks'
| 'days'
| 'hours'
| 'minutes'
| 'seconds'
| 'milliseconds'
| 'microseconds'
| 'nanoseconds'
時間単位。'weeks'
、'days'
、'hours'
、'minutes'
、'seconds'
、'milliseconds'
、'microseconds'
または 'nanoseconds'
として指定します。
バージョン履歴
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)