After you generate code, inspect the source code and output results for verification purposes. The code generation report provides an interactive interface for inspecting the generated C/C++ source files, generated data types, and other code insights. Access a subset of information from the code generation report programmatically by using the report information object. You can test the output of generated MEX code against the original MATLAB® code, or you can create custom tests based on the MATLAB unit test classes. You can choose to generate run-time error checks that alert you to errors that occur during code execution.
|Generate C/C++ code from MATLAB code|
|Create MATLAB Coder code generation configuration objects|
|Run test replacing calls to MATLAB functions with calls to MEX functions|
|Find locations of beginning and end of MATLAB code involved in code generation|
|Prevent use of constant value of expression for function specializations|
|Prevent code generator from creating function specializations for constant-size expressions|
|Name of calling function or method|
|Hardware-specific configuration parameters for C/C++ code generation from MATLAB code|
|coder.ReportInfo Properties||Code generation report information|
|coder.Summary Properties||Summary of code generation from MATLAB code|
|coder.File Properties||Description of file without text that is involved in code generation|
|coder.CodeFile Properties||Description of file containing text that is involved in code generation|
|coder.Function Properties||Description of MATLAB function used in code generation|
|coder.Method Properties||Description of method in a MATLAB class used in code generation|
|coder.Message Properties||Description of message produced during code generation|
|coder.BuildLog Properties||Build logs produced during code generation|
View code generation results.
Generate traceability tags.
Access information about code generation such as input files, generated files, and error messages by using a report information object.
Verify numerical behavior of generated code.
Compare results of running the original MATLAB function with the results from running the MEX function.
Test MEX functions with
Run MATLAB unit tests on generated code.
Run MATLAB unit tests on generated code that integrates external C code.
Generate standalone libraries and executables that detect and report run-time errors, such as out-of-bounds array indexing.