Decide whether to generate code for your application.
Code generation from MATLAB code requires the MATLAB Coder™ product and a C/C++ compiler.
When writing MATLAB for code generation, consider design constraints.
Generated C/C++ code can behave differently than original MATLAB source code.
The code generator identifies potential behavior differences between the generated code and the original MATLAB code.
Review potential difference messages.
Use the MATLAB language features and functions that code generation supports.