Logging signals to a file saves data to a variable in your MATLAB® workspace, and then saves that data to a MAT-file. You can use MATLAB functions for data analysis and MATLAB plotting functions for visualization on the data in the MAT-file.
If your model contains
Outport blocks, you cannot save signal data
in Simulink® external mode. Simulink supports signal logging to a file in normal or accelerator mode only, when
Simulink runs the simulation algorithm.
In external mode, do not enter or select parameters on the Data
I/O tab in the Configuration Parameters dialog box. Instead, add a
Scope block to your Simulink model and use it to log signal data for data archiving.