To save signals on the Android™ device, the device details must be specified, and the MAT-file logging option must be selected.
In your model window, open the Configuration Parameters dialog box, go to the Hardware Implementation pane, and select the name of the hardware from the Hardware board list.
In the Hardware board settings pane, expand Target hardware resources and select Device options.
From the Device list, select your Android device. If your device is not listed, click Refresh.
If your device is not listed even after clicking the
Refresh button, ensure that you have enabled
the USB debugging option on your device. To enable
USB debugging, enter
androidhwsetup in the MATLAB® Command Window and follow the onscreen
In the Configuration Parameters dialog box, go to Code Generation > Interface and expand Advanced parameters, or type
MAT-file logging in 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
as suffix to the variable name in the MAT-file. To use a variable name
without any modification, select
Click Apply to save your changes, and then click OK.