%% Import Data from a CSV File
% You can import data from a CSV file using the Simulation Data Inspector UI or using the Simulink.sdi.createRun function.
% To import data using the UI, open the Simulation Data Inspector using the Simulink.sdi.view function or the Data Inspector button in the Simulink™ toolstrip. Then, click the Import button.
%
% In the Import dialog, select the option to import data from a file and navigate in the file system to select the file. After you select the file, data available for import shows in the table. You can choose which signals to import and whether to import them to a new or existing run. This example imports all available signals to a new run. After selecting the options, click the Import button.
%
% When you import data into a new run using the UI, the new run name includes the run number followed by Imported_Data.
% When you import data programmatically, you can specify the name of the imported run.

csvRunID = Simulink.sdi.createRun('CSV File Run','file','csvExampleData.csv');

% Copyright 2020 The MathWorks, Inc.