export
Export data for signal in Simulation Data Inspector to workspace or file
Description
exports the data for one or more signals in the Simulation Data Inspector to the workspace.sigData
= export(sig
)
If
sig
is a scalarSimulink.sdi.Signal
object, thensigData
is atimeseries
object.If
sig
is an array ofSimulink.sdi.Signal
objects, thensigData
is aSimulink.SimulationData.Dataset
object that contains aSimulink.SimulationData.Signal
object for each signal in the input array.
export(___,
exports one or more signals in the Simulation Data Inspector to the workspace or a
file according to the options specified by one or more name-value arguments.Name=Value
)
For most signals, you can choose to export the data to the workspace, a MAT file, or a Microsoft® Excel® file.
When the signal contains video data, you can export the signal to an MP4 file. Exporting a video signal to an MP4 file is not supported for Linux® operating systems.
Examples
Input Arguments
Output Arguments
Alternatives
You can export data to the workspace or a file using the Simulation Data Inspector. For more information, see Save and Share Simulation Data Inspector Data and Views.
Version History
Introduced in R2017b