Main Content

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:

  1. 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.

  2. In the Configuration Parameters dialog box, go to Code Generation > Interface and expand Advanced parameters, or type MAT-file logging in the search box.

  3. Select the MAT-file logging option.

  4. From the MAT-file variable name modifier list, select an option to add rt_ as prefix or _rt as suffix to the variable name in the MAT-file. To use a variable name without any modification, select none.

  5. Click OK to save your changes.