MATLAB: Is it possible to pass MAT files as inputs to an executable generated using Real-Time Workshop Embedded Coder 5.4 (R2009b)

Embedded Coder

I want to pass MAT files as inputs to an executable generated with ERT Target.

Best Answer

The ability to pass MAT files as input to the executable generated by ERT Target is not available in Real-Time Workshop Embedded Coder 5.4 (R2009b).
As a workaround, you can use S-functions to read files from an external environment.
Note that it is not possible to use MAT file API inside S-functions, as mentioned in: