Simulink.sdi.DatasetRef
Access data in Simulation Data Inspector repository
Description
A Simulink.sdi.DatasetRef
object references data for a run in the Simulation
Data Inspector allowing you to work with signal data in the run while controlling when
and how the signal data is loaded into memory. The
Simulink.sdi.DatasetRef
object references data from a Simulation
Data Inspector run similarly to how a Simulink.SimulationData.DatasetRef
object references a data in a MAT file.
To access signal data in the repository without loading the signal data into memory, use
the getSignal
function. To work with Run
elements outside
the Simulation Data Inspector, use the getElement
function to copy
signal data from the repository to the workspace.
Creation
Syntax
Description
creates an array that contains a dsr_array
= Simulink.sdi.DatasetRefSimulink.sdi.DatasetRef
object corresponding to each run in the Simulation Data Inspector.
creates an array of dsr_array
= Simulink.sdi.DatasetRef(domain
)DatasetRef
objects with the contents of
each run limited to the specified domain
.
creates a dsr
= Simulink.sdi.DatasetRef(runID
)Simulink.sdi.DatasetRef
object that references the
run specified by the run identifier runID
.
creates a dsr
= Simulink.sdi.DatasetRef(runID
, domain
, repositoryPath
)Simulink.sdi.DatsetRef
object that references the
run specified by the run identifier, runID
. The
DatasetRef
object contains the contents specified by
domain
from the repository specified by
repositoryPath
.
Input Arguments
Properties
Object Functions
compare | Compare runs referenced by Simulink.sdi.DatasetRef
objects |
getAsDatastore | Get matlab.io.datastore.sdidatastore representation of signal
in referenced Simulation Data Inspector run |
getElement | Copy signal data from Simulation Data Inspector run to workspace |
getElementNames | Get names of all elements in referenced Simulation Data Inspector run |
getSignal | Get signal data from Simulation Data Inspector run |
plot | Open Simulation Data Inspector to view and compare data |
Examples
Version History
Introduced in R2017b