Main Content

Code Generation Readiness Tool

The code generation readiness tool screens MATLAB® code for features and functions that code generation does not support. The tool provides a report that lists the source files that contain unsupported features and functions. It is possible that the tool does not detect all code generation issues. Under certain circumstances, it is possible that the tool can report false errors. Therefore, before you generate code, verify that your code is suitable for code generation by generating a MEX function.

The code generation readiness tool does not report functions that the code generator automatically treats as extrinsic. Examples of such functions are plot, disp, and figure.

Issues Tab

Screenshot of the code generation readiness tool with sample code and analysis results.

On the Issues tab, the tool displays information about:

  • MATLAB syntax issues. These issues are reported in the MATLAB editor. To learn more about the issues and how to fix them, use the Code Analyzer.

  • Unsupported MATLAB function calls, language features, and data types.

You can also:

  • View your MATLAB code inside the Code Generation Readiness Tool. When you select an issue, the part of your MATLAB code that caused this issue gets highlighted.

  • Group the readiness results either by issue or by file.

  • Select the language that the code generation readiness analysis uses.

  • Refresh the code generation readiness analysis if you updated your MATLAB code.

  • Export the analysis report either as plain text file or as a coder.ScreenerInfo object in the base workspace.

Files Tab

Screen shot of files tab.

If the code that you are checking calls functions in other MATLAB code files, the Files tab shows the call dependency between these files. If you select Show MathWorks Functions, the report also lists the MathWorks® functions that your function calls.

See Also

(MATLAB Coder) | (MATLAB Coder)

Related Topics