Simulink.SimulationData.DatasetRef
Create Simulink.SimulationData.DatasetRef
object
Description
To use a reference for accessing a
Simulink.SimulationData.Dataset
object stored in a MAT-file, create a
Simulink.SimulationData.DatasetRef
object. You can use this reference to
avoid running out of memory by retrieving data signal by signal for data that you log to persistent storage. You can stream a
DatasetRef
object into a root-level input port. Or you can use a
DatasetRef
object to create a SimulationDatastore
object
to use for streaming. For details, see Load Big Data for Simulations.
For parallel simulations, for which you specify an array of
Simulink.SimulationInput
objects, if you are logging to file, the
software:
Creates
Simulink.SimulationData.DatasetRef
objects to access output data in the MAT-file and includes those objects in theSimulationOutput
object dataEnables the
CaptureErrors
argument for simulation
Tip
To get the names of Dataset
object variables in the MAT-file, the
function processes faster than using the Simulink.SimulationData.DatasetRef.getDatasetVariableNames
who
or
whos
functions.
Creation
Description
creates a reference to the contents of a
DSRefObj
= Simulink.SimulationData.DatasetRef(location
,identifier
)Simulink.SimulationData.Dataset
object variable stored in a
MAT-file.
Input Arguments
Output Arguments
Properties
Object Functions
get | Get element or collection of elements from
Simulink.SimulationData.Dataset object |
getElementNames | Return names of all elements in Simulink.SimulationData.Dataset
object |
numElements | Get number of elements in Simulink.SimulationData.Dataset
object |
plot | Plot data in Simulation Data Inspector |
getAsDatastore | Get matlab.io.datastore.SimulationDatastore representation of element
from referenced Dataset object |
Simulink.SimulationData.DatasetRef.getDatasetVariableNames | List names of variables in MAT file that contain
Simulink.SimulationData.Dataset objects |
Examples
Version History
Introduced in R2016a