Simulink.sdi.load
R2026bLoad Simulation Data Inspector session or view
Description
loads data from the file specified by valid = Simulink.sdi.load(filename)filename into the
Simulation Data Inspector and returns 1 when the file is valid.
You can load data from MAT files or MLDATX files. When you specify an MLDATX file,
the software loads both the data and visualization settings into the Simulation Data
Inspector.
Simulation Data Inspector views are also saved as MLDATX files. To load a view
file, which does not include signal data, use the Simulink.sdi.loadView function.
,
where valid = Simulink.sdi.load(filename,ClearExisting=tf)tf is true, clears all existing
data in the Simulation Data Inspector before loading data from the specified
file. The default for tf is false, which
keeps existing runs and adds the loaded runs to the archive. (since R2026b)
Before R2026b: When you load a session file that contains multiple tabs, the Simulation Data Inspector loads only the view from the tab that was active when the session was saved.