View documentation for other releases
• Getting Started
• Introduction to Code Generation from MATLAB
What Is Code Generation from MATLAB?
When to Generate Code from MATLAB Algorithms
Which Code Generation Feature to Use
When Not to Generate Code from MATLAB Algorithms
Benefits of Generating Code from MATLAB
• User's Guide
• About Code Generation from MATLAB Algorithms
Direct Translation of MATLAB Algorithms to C/C++ Code
Prerequisites for Code Generation from MATLAB
Preparing MATLAB Code for C/C++ and MEX Code Generation
• Expected Differences in Behavior After Compiling Your MATLAB Code
MATLAB Language Features Supported for Code Generation
MATLAB Language Features Not Supported for Code Generation
Related Products That Support Code Generation from MATLAB
• Functions Supported for Code Generation
About Code Generation for Supported Functions
Functions Supported for Code Generation - Alphabetical List
• Functions Supported for Code Generation - Categorical List
• System Objects Supported for Code Generation
About Code Generation for System Objects
Computer Vision System Toolbox System Objects
Communications System Toolbox System Objects
DSP System Toolbox System Objects
• Defining MATLAB Variables for C/C++ Code Generation
Why Define Variables Differently for Code Generation?
• Best Practices for Defining Variables for C/C++ Code Generation
When You Can Reassign Variable Properties for C/C++ Code Generation
• Eliminating Redundant Copies of Variables in Generated Code
Defining and Initializing Persistent Variables
• Reusing the Same Variable with Different Properties
Avoiding Overflows in for-Loops
Supported Variable Types
• Defining Data for Code Generation
How Working with Data is Different for Code Generation
• Code Generation for Complex Data
Code Generation for Characters
• Code Generation for MATLAB Structures
How Working with Structures Is Different for Code Generation
Structure Operations Allowed for Code Generation
• Defining Scalar Structures for Code Generation
• Defining Arrays of Structures for Code Generation
Making Structures Persistent
Indexing Substructures and Fields
Assigning Values to Structures and Fields
Passing Large Structures as Input Parameters
• Code Generation for Enumerated Data
• How Working with Enumerated Data Is Different for Code Generation
• Enumerated Types Supported for Code Generation
When to Use Enumerated Data for Code Generation
• Workflows for Using Enumerated Data for Code Generation
• How to Define Enumerated Data for Code Generation
How to Instantiate Enumerated Types for Code Generation
• How to Generate Code for Enumerated Data
• Defining and Using Enumerated Types for Code Generation
• Operations on Enumerated Data Allowed for Code Generation
• Using Enumerated Data in Control Flow Statements
• Customizing Enumerated Data Types
Changing and Reloading Enumerated Data Types
Restrictions on Use of Enumerated Data in for-Loops
Toolbox Functions That Support Enumerated Types for Code Generation
• Code Generation for Variable-Size Data
What Is Variable-Size Data?
• How Working with Variable-Size Data Is Different for Code Generation
Bounded Versus Unbounded Variable-Size Data
How to Control Memory Allocation of Variable-Size Data
How to Generate Code for MATLAB Functions with Variable-Size Data
• Generating Code for a MATLAB Function That Expands a Vector in a Loop
• Using Variable-Size Data Without Dynamic Memory Allocation
• Variable-Size Data in Code Generation Reports
• Defining Variable-Size Data for Code Generation
• C Code Interface for Arrays
• Troubleshooting Issues with Variable-Size Data
• Limitations with Variable-Size Support for Code Generation
• Restrictions on Variable Sizing in Toolbox Functions Supported for Code Generation
• Code Generation for MATLAB Classes
• About Code Generation for MATLAB Classes
• How Working with MATLAB Classes is Different for Code Generation
Memory Allocation Requirements
Generate Code for MATLAB Value Classes
Generate Code for MATLAB Handle Classes and System Objects
• MATLAB Classes in Code Generation Reports
• Troubleshooting
• Code Generation for Function Handles
How Working with Function Handles is Different for Code Generation
Example: Defining and Passing Function Handles for Code Generation
Limitations with Function Handles for Code Generation
• Defining Functions for Code Generation
Specifying Variable Numbers of Arguments
Supported Index Expressions
• Using varargin and varargout in for-Loops
• Implementing Wrapper Functions with varargin and varargout
Passing Property/Value Pairs with varargin
Rules for Using Variable Length Argument Lists for Code Generation
• Calling Functions for Code Generation
• How MATLAB Resolves Function Calls in Generated Code
How MATLAB Resolves File Types on the Path for Code Generation
Adding the Compilation Directive %#codegen
Calling Subfunctions
Calling Supported Toolbox Functions
• Calling MATLAB Functions
• Generating Efficient and Reusable Code
• Generating Efficient Code
Generating Reusable Code
• Functions
Examples
• Release Notes
Symbols A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Alphabetical List