Main Content

jc_0733: Order of state action types

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a, b

  • JMAAB — a, b

MATLAB Versions

All

Rule

Sub ID a

Basic state action types shall be stated in this order:

entry (en)

during (du)

exit (ex)

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Action types are out of order.

Sub ID b

Combined state action types shall be stated in this order:

entry (en)

during (du)

exit (ex)

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

Action types are out of order

Rationale

Sub ID a:

  • Consistent modelling improves readability and maintainability.

Verification

Model Advisor check: Check order of state action types (Simulink Check)

Last Changed

R2020a

See Also

Version History

Introduced in R2020a