Modeling Patterns for C Code Constructs - MATLAB & Simulink (original) (raw)

Apply modeling patterns that generate specific C constructs

Several standard methods are available for setting up a model to generate specific C constructs in your generated code. Using blocks, S-functions, Stateflow charts, MATLAB Function blocks, data objects, and custom storage classes, you can generate C constructs such as: data types, structures, arrays, control flow constructs, functions, preprocessor directives, and pointers. To begin, see Prepare a Model for Code Generation. Also see Standards, Guidelines, and Block Usage.

Topics

Types, Operators, and Expressions

Control Flow

Functions

Preprocessor Directives

Structures

Arrays

Pointers