If you have Embedded Coder®, you have the option to highlight potential data types issues in the code generation report for standalone code generated from MATLAB® code. If you enable this option, on the Code Insights tab, the report identifies single-precision and double-precision operations in the generated C/C++ code. If you have Fixed-Point Designer™, the report also identifies expensive fixed-point operations.
To view potential data type issues in a code generation report:
Click the Code Insights tab.
Expand the Potential data type issues section.
Expand the data type issues section that you want to see.
For example, this report identifies MATLAB code that results in double-precision operations in the generated code.
The option to highlight potential data type issues is disabled by default.
On the Generate Code page, to open the Generate dialog box, click the Generate arrow .
Set Build type to one of the following:
Static Library (.lib)
Dynamic Library (.dll)
Click More Settings.
On the Debugging tab, select the Always create a report and Highlight potential data type issues check boxes.
Create an embedded code configuration object for
cfg = coder.config('lib','ecoder',true); % or dll or exe
object properties to
cfg.GenerateReport = true; cfg.HighlightPotentialDataTypeIssues = true;