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
sigis a scalarSimulink.sdi.Signalobject, thensigDatais atimeseriesobject.If
sigis an array ofSimulink.sdi.Signalobjects, thensigDatais aSimulink.SimulationData.Datasetobject that contains aSimulink.SimulationData.Signalobject 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
Name-Value 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