coder.allowpcode |
Control code generation from protected MATLAB files |
coder.ceval |
Call external C/C++ function |
coder.cinclude |
Include header file in generated code |
coder.cstructname |
Name structure in generated code |
coder.extrinsic |
Declare extrinsic function or functions |
coder.inline |
Control inlining in generated code |
coder.load |
Load compile-time constants from MAT-file or ASCII file into caller workspace |
coder.nullcopy |
Declare uninitialized variables |
coder.opaque |
Declare variable in generated code |
coder.ref |
Pass argument by reference as read input or write output |
coder.rref |
Pass argument by reference as read-only input |
coder.target |
Determine if code generation target is specified target |
coder.unroll |
Copy body of for-loop in generated code for each iteration |
coder.varsize |
Declare variable-size array |
coder.wref |
Pass argument by reference as write-only output |
When to Generate Code from MATLAB Algorithms
Decide whether to generate code for your application.
Which Code Generation Feature to Use
Choose code generation feature for your application.
Prerequisites for C/C++ Code Generation from MATLAB
Code generation from MATLAB® code requires the MATLAB Coder™ product and a C/C++ compiler.
Differences in Behavior After Compiling MATLAB Code
Generated C/C++ code can behave differently than original MATLAB source code.
MATLAB Language Features Supported for C/C++ Code Generation
Use the MATLAB language features and functions that code generation supports.
MATLAB Code Design Considerations for Code Generation
When writing MATLAB for code generation, consider design constraints.