| Contents | Index |
Simulink.sdi.load(fileName)
isValidSDIMatFile = Simulink.sdi.load(fileName) loads the runs, signals, tolerances, signal selections, and the saved view from a MAT-file, fileName. You can include a full or partial path in fileName.
fileName |
A string specifying the file and optionally a full or partial path. |
isValidSDIMatFile |
Boolean value specifying whether the file is a valid Simulation Data Inspector MAT-file. |
Load a previous Simulation Data Inspector session saved to a MAT-file.
% Configure model "sldemo_f14" for logging and simulate
simOut = sim('sldemo_f14', '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;In the Simulation Data Inspector tool, to load a saved session, select File > Import Data and enter the name for the MAT-file.
Simulink.sdi.createRun | Simulink.sdi.save | Simulink.sdi.view

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |