Main Content

jm_0011: Pointers in Stateflow

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

Stateflow® Chart (Stateflow) shall not use pointer variables.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Pointer variables are used.

Rationale

Sub ID a:

  • Readability is impaired when pointer variables are used.

  • Code generation may not be possible.

Verification

Model Advisor check: Check for pointers in Stateflow charts (Simulink Check)

Last Changed

R2020a

See Also

Introduced in R2020a