Main Content

Data Access for Prototyping and Debugging

Configure accessibility of data in the generated code

Signals, states, and block parameters that you create in a model appear in the generated code as variables. You can control the way that the code declares and defines these variables.

  • Manage access to signal data and specify parameter tunability.

  • Improve code readability and traceability.

  • Ease the integration of the generated code with your own code by specifying identifiers and file placement of declarations and definitions.

  • Generate efficient code by reducing memory usage and specifying numeric data types.

Topics

Data Storage in the Generated Code

Array Layout

Access Data During Execution