Main Content
Data Definition
Defining data for code acceleration
Control how data is represented, memory is allocated, and which types are used in algorithm acceleration or fixed-point conversion by how you design your MATLAB® code. Follow the described guidelines to determine the types of variables when accelerating algorithms or converting to fixed-point.
Data Definition Basics
- Data Definition Considerations for Code Generation
- Best Practices for Defining Variables for C/C++ Code Generation
- Reuse the Same Variable with Different Properties
- Eliminate Redundant Copies of Variables in Generated Code
- Array Size Restrictions for Code Generation
- Generate Code for Growing Arrays and Cell Arrays with end + 1 Indexing
Categories
- Numeric Types
Data, variables, and functions for code acceleration
- Characters and Strings
Definition and use of text in code acceleration
- Variable-Size Data
Variable-size data for code acceleration, dynamic memory allocation
- Structures
Code acceleration structures and supported operations
- Cell Arrays
Definition and use of cell arrays in code acceleration
- Tables
Definition and use of tables in code acceleration
- Categorical Arrays
Definition and use of categorical arrays in code acceleration
- Datetime Arrays
Definition and use of datetime arrays in code acceleration
- Duration Arrays
Definition and use of duration arrays in code acceleration
- Timetables
Definition and use of timetables in code acceleration
- Enumerations
Data restricted to specific values for code acceleration
- MATLAB Classes
MATLAB classes used in code acceleration
- Function Handles
Function handles in code acceleration
- Dictionaries
Definition and use of dictionaries in code acceleration