This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Load a saved Simulation Data Inspector session or view


isValidSDIMatFile = Simulink.sdi.load(fileName)



isValidSDIMatFile = Simulink.sdi.load(fileName) loads the Simulation Data Inspector session or view from the MLDATX-file or MAT-file fileName.


collapse all

% Configure model "slexAircraftExample" for logging and simulate
simOut = sim('slexAircraftExample', 'SaveOutput','on', ...
             'SaveFormat', 'StructureWithTime', ...
             'ReturnWorkspaceOutputs', 'on');

% Create a run in the Simulation Data Inspector
runID = Simulink.sdi.createRun('My Run','base',{'simOut'});

% Save the current Simulation Data Inspector session'my_runs.mat');

% Clear all data from the Simulation Data Inspector

% Import saved MAT-file into the Simulation Data Inspector

% See the results in Simulation Data Inspector

Input Arguments

collapse all

File name, specified as a character vector, of the full or partial path of a Simulation Data Inspector session or view MLDATX-file.

Output Arguments

collapse all

Indication of whether the MLDATX-file is a valid Simulation Data Inspector session or view file, returned as a Boolean value. Returns 1 if the file is valid and 0 if the file is not valid.


In the Simulation Data Inspector, click Open on the Visualize tab. For more information, see Share Simulation Data Inspector Data and Views.

Introduced in R2011b

Was this topic helpful?