jm_0011: Pointers in Stateflow
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and 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
Pointer and Address Operations (Stateflow)
Version History
Introduced in R2020a