To open the Generate dialog
box, on the Generate Code page, click the Generate arrow
.
Click More Settings.
On the Debugging tab, select the Always create a code generation report check box.
If you want the app to open the report, select the Automatically launch a report if one is generated check box.
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.