Global Variable Representation
Control the representation of a global variable in the generated
C/C++ code by assigning it a storage class. For code generation, a storage
class is a specification that determines the declaration
and definition of a variable in the generated code. Storage classes
help you to integrate generated code with external code. For code
generation from MATLAB® code, you can use storage classes with
global variables only. To assign a storage class to a global variable,
in your MATLAB code, use the
|Assign storage class to global variable|
- Storage Classes for Code Generation from MATLAB Code
A storage class determines the declaration and definition of a global variable in C/C++ code generated from MATLAB code.
- Control Declarations and Definitions of Global Variables in Code Generated from MATLAB Code
Assign storage classes to global variables to control their representation in C/C++ code generated from MATLAB code.