Documentation

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.

Simulink.sdi.load

Load a saved Simulation Data Inspector session or view

Syntax

isValidSDIMatFile = Simulink.sdi.load(fileName)

Description

example

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

Examples

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
Simulink.sdi.save('my_runs.mat');

% Clear all data from the Simulation Data Inspector
Simulink.sdi.clear;

% Import saved MAT-file into the Simulation Data Inspector
Simulink.sdi.load('my_runs.mat');

% See the results in Simulation Data Inspector
Simulink.sdi.view;

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.

Alternatives

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?