Enable Code Generation Reports

Enable Code Generation Reports with the MATLAB Coder App

  1. To open the Generate dialog box, on the Generate Code page, click the Generate arrow .

  2. Click More Settings.

  3. On the Debugging tab, select the Always create a code generation report check box.

  4. If you want the app to open the report, select the Automatically launch a report if one is generated check box.

Enable Code Generation Reports at the Command Line

Use the codegen function -report option. To generate a standalone C/C++ static library and code generation report for a function foo that has no input parameters, at the MATLAB® command line, enter:

codegen -config:lib -report foo

If you want the code generation or error report to automatically open, use the -launchreport option instead of the -report option.

Was this topic helpful?