Main Content

Import, Export, and Share Simulation Data

R2026b
Import data from files and the workspace into the Simulation Data Inspector, save and share simulation and analysis results

You can import data into the Simulation Data Inspector from files or from the MATLAB workspace to visualize, compare, and analyze data alongside logged simulation results. The Simulation Data Inspector supports import from files such as CSV files, Microsoft® Excel® files, MDF files, MLDATX files, and Parquet files (since R2026b). You can also write custom file and workspace readers to import data in other formats.

To save and share your data and analysis results, export run data and signal data to MAT files, Microsoft Excel files, Parquet files (since R2026a), CSV files (since R2026b), or VCD files (since R2026b). You can also save and load Simulation Data Inspector sessions to preserve both your data and plot appearance.

To share results with collaborators who do not have MATLAB, create a Simulation Data Inspector report. Viewing the report requires only a web browser. For comparison results, you can also create an interactive comparison report, which allows you to analyze the comparison similarly to how you would in the Simulation Data Inspector.

Tools

expand all

Simulation Data InspectorInspect and compare data and simulation results to validate and iterate model designs

Functions

expand all

Simulink.sdi.saveViewSave visualization settings to apply to other data
exportExport run or signal from the Simulation Data Inspector to workspace or file
Simulink.sdi.exportRunExport Simulation Data Inspector run data to workspace or file
Simulink.sdi.saveSave Simulation Data Inspector session
Simulink.sdi.reportGenerate a Simulation Data Inspector report
mldatxfileGet mldatx.io.File representation of signal data saved in MLDATX file (Since R2026a)
Simulink.sdi.getVersionGet Simulation Data Inspector session file version (Since R2024b)
matlabshared.mldatx.getTypeGet type of MLDATX file (Since R2025a)
matlabshared.mldatx.getDescriptionGet description of MLDATX file (Since R2025a)
loadLoad data from MLDATX file to workspace (Since R2026a)
getSignalsCreate interface to individual signals in MLDATX file (Since R2026a)
getAsDatastoreCreate datastore for processing big data stored in MLDATX file (Since R2026a)
getRunCountGet number of runs in MLDATX file (Since R2026a)
getRunInfoByIndexGet detailed metadata for run in MLDATX file (Since R2026a)
listRunsList runs in MLDATX file (Since R2026a)
listSignalsList signals in MLDATX file (Since R2026a)
Simulink.sdi.loadLoad Simulation Data Inspector session or view
Simulink.sdi.Run.createImport data into new run in Simulation Data Inspector and return Simulink.sdi.Run object
Simulink.sdi.createRunImport data into new run in Simulation Data Inspector and return run ID
Simulink.sdi.addToRunImport data into existing run in Simulation Data Inspector using run ID
Simulink.sdi.createRunOrAddToStreamedRunCreate a single run for all simulation outputs
Simulink.sdi.Parquet.getSignalMetadataGet signal metadata from Parquet file (Since R2026b)
Simulink.sdi.Parquet.getHierarchyDatasetGet bus hierarchy from Parquet file (Since R2026b)
Simulink.sdi.enablePCTSupportControl when to import data from parallel simulations into the Simulation Data Inspector
Simulink.sdi.isPCTSupportEnabledDetermine status and mode for Parallel Computing Toolbox support
Simulink.sdi.sendWorkerRunToClientSend run created on parallel workers to the Simulation Data Inspector
Simulink.sdi.cleanupWorkerResourcesClean up worker repositories
Simulink.sdi.WorkerRun.getLatestCreate worker run for latest run

Objects

matlab.io.datastore.MLDATXSignalDatastoreDatastore for data saved in MLDATX file (Since R2026a)
mldatx.io.File Reference to runs in MLDATX file (Since R2026a)
mldatx.io.SignalReference to signal in MLDATX file (Since R2026a)
io.readerBase class used to define custom variable or file reader for Simulation Data Inspector
matlab.io.datastore.sdidatastore Datastore for Simulation Data Inspector signals
Simulink.sdi.DatasetRefAccess data in Simulation Data Inspector repository
Simulink.HMI.InstrumentedSignalsSave and restore signal logging specification
Simulink.sdi.WorkerRun Access simulation data from parallel workers

Topics

Import Data into Simulation Data Inspector

Export Data from Simulation Data Inspector

File Logging Formats

Related Information

Featured Examples