Enable MAT-File Logging
To save signals on an SD card, the MAT-file logging option must be selected. Perform these steps, to enable MAT-file logging:
- In your model window, open the Configuration Parameters dialog box, go to the Hardware Implementation pane, and select the name of the target hardware from the Hardware board list. 
- In the Configuration Parameters dialog box, go to Code Generation > Interface and expand Advanced parameters, or type - MAT-file loggingin the search box.
- Select the MAT-file logging option. 
- From the MAT-file variable name modifier list, select an option to add - rt_as prefix or- _rtas suffix to the variable name in the MAT-file. To use a variable name without any modification, select- none.
- Click OK to save your changes.  
See Also
Topics
- MAT-file Logging on SD Card for STMicroelectronics STM32 Processors (Embedded Coder)
- Log Signals on SD Card (Embedded Coder)
- Prerequisites for Logging Signals (Embedded Coder)
- Configure Model to Log Signals on SD Card (Embedded Coder)
- Run Model on Target Hardware (Embedded Coder)
- Import MAT-Files into MATLAB (Embedded Coder)