Main Content

Data Definition

How defining data for code generation differs from defining data for MATLAB®

MATLAB is a dynamically typed language. Therefore, the class, size, and complexity of a given variable can change during MATLAB execution. In contrast, statically typed languages, such as C/C++, must determine variable types at compile-time.

Control how data is represented, memory is allocated, and which C types are used in generated code by how you design your MATLAB code. Follow the described guidelines to allow the code generator to determine the types of variables when generating code.

Categories