codegen |
Generate C/C++ code from MATLAB code |
coder.config |
Create MATLAB Coder code generation configuration objects |
coder.CodeConfig |
codegen configuration object |
coder.EmbeddedCodeConfig |
codegen configuration object that specifies code generation parameters for code generation with an Embedded Coder license |
coder.HardwareImplementation |
codegen configuration object that specifies hardware implementation parameters for code generation |
coder.MexCodeConfig |
codegen configuration object that specifies MEX function generation parameters |
Enable Code Generation Reports
Specify options for producing a code generation report.
Generate and interpret code generation reports from MATLAB Coder.
Include MATLAB source code as comments in the generated code.
Generate Standalone Code That Detects and Reports Run-Time Errors
Detect and fix errors that occur on the target hardware.
Run-Time Error Detection and Reporting in Standalone C/C++ Code
Generate standalone libraries and executables that detect and report run-time errors, such as out-of-bounds array indexing.
Testing Code Generated from MATLAB Code
Verify numerical behavior of generated code.
Verify MEX Functions in the MATLAB Coder App
Compare results of running the original MATLAB® function with the results from running the MEX function.
Verify MEX Functions at the Command Line
Test MEX functions with coder.runTest
.
Unit Test Generated Code with MATLAB Coder
Run MATLAB unit tests on generated code.
Unit Test External C Code with MATLAB Coder
Run MATLAB unit tests on generated code that integrates external C code.