db_0112: Usage of index
Sub ID Recommendations
NA-MAAB — a1/a2
JMAAB — a1/a2
Sub ID a1
A vector signal shall use a zero-based index mode.
A uniform zero-based index mode is used.
A uniform index mode is not used.
Sub ID a2
A vector signal shall use a one-based index mode.
A uniform one-based index mode is used.
A uniform index mode is not used (same as the incorrect example for sub ID a1).
Sub IDs a1, a2
Logic is easier to understand when using a uniform index mode.
Model Advisor check: Check Indexing Mode (Simulink Check)
JMAAB guideline db_0112, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Introduced in R2020a