MATLAB: How to generate partitioned C files when executing the EMLC command in Real-Time Workshop 5.1 (R2008a)

emlcfilespartitionseparatesimulink coder

I would like the C-code generated from EMLC to be partitioned such that it matches my MATLAB file structure. For example, if I have a top-level MATLAB function, which calls another MATLAB function, I would like two separate C-files to be generated, one for each MATLAB function.

Best Answer

File partitioning is a feature that was introduced for EMLC in Real-Time Workshop 5.2 (R2008b). More information about this feature is available in our documentation for Real-Time Workshop in the 'How emlc Generates Code' section:
<http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/brttt_g.html>
There are no workarounds in earlier releases.