数据集信号格式
描述
记录的格式数据集
叶子元素。
类别:Data Import/Export
设置
默认:时间序列
-
时间序列
-
Save
数据集
element values in MATLAB®时间序列
格式。 -
时间表
-
Save
数据集
element values in MATLAB时间表
格式。
格式的比较
这时间表
格式可以从多个模拟中更轻松地合并已记录的数据。
属性显示
这时间序列
格式显示一个时间属性的一个字段(TimeInfo
)和数据属性的第二个字段(DataInfo
)。For example, here are the properties of a时间序列
非刻度信号的对象。
TS
时间序列Common Properties: Name: '' Time: [1001x1 double] TimeInfo: [1x1 tsdata.timemetadata] Data: [1001x1 double] DataInfo: [1x1 tsdata.datametadata]
当您输入一个名称时时间表
对象(例如,TT
) and query the properties, you see all of the properties.
tt.properties
ans = struct with fileds: Description: '' UserData: [] DimensionNames: {'Time' 'Variables'} VariableDescriptions: {} VariableNames: ['temperature' 'WindSpeed' 'WindDirection'] VariableUnits: {} VariableContinuity: ['continuous'] RowTimes: [64x1 duration]
数据访问
To access data logged in the时间序列
格式,使用Data
信号的属性。例如,对于时间序列
目的TS
(仅显示前五个值):
ts = yout {1} .values;ts.data
ANS = 0 -0.0002 -0.0012 -0.0062 -0.0306
这时间表
记录的格式数据集
data produces a table with one time column, called时间
,一个数据列,称为Data
。这时间
列是给定信号的仿真时间向量,以持续时间类型存储,设置秒数以匹配仿真时间的单位,从仿真开始时间开始(通常设置为0秒
)。Simu万博1manbetxlink®信号尺寸[n]
and[NX1]
在时间表
表示。例如,对于时间表
目的TT
(仅显示前五个值):
tt = yout {1} .values;tt.data
时间Data _________ ____________ 0 sec [1x3x2 double] 0.1 sec [1x3x2 double] 0.2 sec [1x3x2 double] 0.3 sec [1x3x2 double] 0.4 sec [1x3x2 double]
样本的数量是Data
列时间表
对象,但这是记录的数据字段中的最后一个维度时间序列
数据是非大规模
。因此,当您访问数据时时间表
format, you may need to reshape the data when each sample is a nonscalar array. One option is to use the挤
功能。例如,要访问数据集中的第一个数据行,您可以使用这样的命令:
挤压(tt.data {1,1})
ANS = 1 2 3 4 5 6
如果信号是公共汽车或一系列公共汽车,则将信号值记录为时间表
物体,结构的每个叶子对应于总线中每个叶子信号的记录结果。
Units
对于在Simulink中记录的数据,万博1manbetx时间序列
格式显示时间值的单位Units
财产。单位可以指定为任何类的任何值。时间表记录将单位设置为万博1manbetxsimulink.simulationdata.unit
对象,如果已记录信号指定单位。为了加载,只有单位才能兑现万博1manbetxsimulink.simulationdata.unit
;否则,他们将被忽略。
为了时间表
格式,Simul万博1manbetxink不支持记录数据的单位。万博1manbetx
数据插值
这时间序列
format插值
财产displays whether the interpolation method is线性
(默认)或zoh
。
这时间表
formatvariablecontinity
属性将变量表征为连续或离散。模拟数据的可能值是:
连续的
- 对应于时间序列
财产插值
设置线性
。万博1manbetxSimulink使用此设置来填充连续样品时间。步
- 对应于时间序列
财产插值
设置zoh
。万博1manbetxSimulink使用此设置来填充离散的样本时间。
统一和非均匀的时间
这时间序列
格式显示时间数据是均匀还是不均匀的。对于连续样本时间记录的数据(线性插值),TimeInfo
财产indicates that the time is nonuniform and gives the length. For a discrete sample times (zero-order hold interpolation), theTimeInfo
财产indicates that the time is uniform and gives the length and increment.
这时间表
格式没有用于均匀和非统一时间数据的属性。
For data in时间序列
or时间表
格式,您可以使用MATLABisregular
function to get this time information.
信号名称
这时间序列
格式将记录信号的名称存储在万博1manbetxsimulink.simulationdata.element
包装对象以及时间序列
目的itself.
这时间表
格式将记录信号的名称存储在万博1manbetxsimulink.simulationdata.element
包装器对象,但不是时间表
目的itself.
提示
这数据集信号格式参数使用时没有效果范围块到日志数据。
Command-Line Information
Parameter:DataSetsignAlformat |
价值:'时间序列' |'timetable' |
默认:'时间序列' |
推荐设置
应用 | Setting |
---|---|
调试 | No impact |
可追溯性 | No impact |
效率 | No recommendation |
安全预防措施 | No recommendation |