MATLAB 帮助中心
查询 tsdata.event 时间
tsdata.event
eventtimes = getTimeStr(tse,timeunits)
eventtimes = getTimeStr(tse,timeunits) 返回一个元胞数组,其中包含数组 tse 中单位为 timeunits 的每个 tsdata.event 的时间。
tse
timeunits
示例
全部折叠
创建一个 tsdata.event 对象数组并显示事件的时间(以秒为单位)。
tse1 = tsdata.event('MyEvent',1); tse2 = tsdata.event('MyEvent',2); tse = [tse1 tse2]; eventtimes = getTimeStr(tse,'seconds')
eventtimes = 1×2 cell {'1.000'} {'2.000'}
输入 tsdata.event,指定为数组。
'weeks'
'days'
'hours'
'minutes'
'seconds'
'milliseconds'
'microseconds'
'nanoseconds'
时间单位,指定为 'weeks'、'days'、'hours'、'minutes'、'seconds'、'milliseconds'、'microseconds' 或 'nanoseconds'。
在 R2006a 之前推出
timeseries | tscollection | tsdata.event
timeseries
tscollection
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处