Structures
Fixed-Point Designer™ supports acceleration and conversion for structures with a set of restrictions on the operations, the properties of values of scalar structures, and the structure arrays. You can use scalar structures as well as structure arrays in your code. Adhere to restrictions for indexing and assigning values to substructures and fields. Structure arguments are passed by reference or by value.
Topics
- Structure Limitations for Code Generation (MATLAB Coder)
Adhere to code generation restrictions for structures.
- Pass Structure Arguments by Reference or by Value in Standalone Code (MATLAB Coder)
Control whether structure arguments are passed by reference or by value.
- Name C Structure Type to Use with Global Structure Variable (MATLAB Coder)
Use
coder.cstructnameto define a type object for a global structure. - Generate Standalone C Code for Array of Structures (MATLAB Coder)
Generate code for a MATLAB® function that uses a structure array.