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
JMAAB guideline jm_0011, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Pointer and Address Operations (Stateflow)
Version History
Introduced in R2020a