Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Variable-Size Data in Code Generation Reports

What Reports Tell You About Size

Code generation reports:

  • Differentiate fixed-size from variable-size data

  • Identify variable-size data with unknown upper bounds

  • Identify variable-size data with fixed dimensions

    If you define a variable-size array and then subsequently fix the dimensions of this array in the code, the report appends * to the size of the variable. In the generated C code, this variable appears as a variable-size array, but the size of its dimensions does not change during execution.

  • Provide guidance on how to fix size mismatch and upper bounds errors.

How Size Appears in Code Generation Reports

How to Generate a Code Generation Report

When you build a Simulink® model that contains MATLAB Function blocks, Simulink automatically generates a report in HTML format for each MATLAB Function block in your model. See MATLAB Function Reports

Was this topic helpful?