类:金宝appSimulink.SimulationData.DatasetRef
包:金宝app仿真软件。SimulationData
从引用的数据集对象中获取元素的matlab.io.datastore.SimulationDatastore表示
element = 金宝appSimulink.SimulationData.DatasetRef.getAsDatastore(datasetref_elements)
element = 金宝appSimulink.SimulationData.DatasetRef.getAsDatastore(datasetref_elements)
返回一个matlab.io.datastore.SimulationDatastore
基于元素的索引、名称或块路径,表示引用数据集中的元素或元素集合。
你可以表示数据集
元素作为matlab.io.datastore.SimulationDatastore
对象,如果元素被放入mat文件使用以下两种方法之一:
日志数据集
格式化数据到持久存储(MAT-file)。
将元素放入金宝appSimulink.SimulationData.Dataset
对象并保存数据集
对象到v7.3 mat文件。
的SimulationDatastore
代表数据集
元素为该元素的Values字段创建一个SimulationDatastore对象。的SimulationDatastore
的数据流金宝app值
将元素的属性导入到其他仿真或MATLAB中®.
请注意
不能使用create aSimulationDatastore
为数据集
包含以下数据类型的元素:
数组
你可以用SimulationDatastore
对象:
参考在mat文件中存储在磁盘上的日志模拟数据。
指定信号从磁盘到模拟的增量流。
为使用MATLAB函数进行大数据分析提供基础。
为了简化索引的使用,您可以使用花括号({}
)语法获取aSimulationDatastore
对象DatasetRef
对象信号值。需求和结果与使用相同getAsDatastore
.例如,如果将信号数据记录到持久存储(选择将数据集数据记录到文件中配置参数)并模拟模型。
sigLogRef = 金宝appSimulink.SimulationData.DatasetRef(“out.mat”,“logsout”);firstSig = sigLogRef{1}
ans = 金宝appSimulink. simulationdata . signal Package: Simulink。SimulationDataProperties: Name: 'x1' PropagatedName: '' BlockPath: [1x1 Simulink.SimulationData.BlockPath] PortType: 'outport' PortIndex: 1 Values: [1×1 matlab.io.datastore.SimulationDatastore]
金宝appSimulink.SimulationData.DatasetRef
|matlab.io.datastore.SimulationDatastore
|金宝appSimulink.SimulationData.Dataset