jc_0701: Usable number for first index
Sub ID Recommendations
NA-MAAB — a1/a2
JMAAB — a1/a2
Sub ID a1
First Index is set to a combination of
Sub ID a1:
Logic becomes easier to understand when First Index is uniform.
Sub ID a2:
Logic becomes easier to understand when First Index is uniform. However, C language is 0-based, which decreases the readability of the code as the index calculation process is 1-based. This is reflected in the generated code.
Model Advisor check: Check usable number for first index (Simulink Check)
JMAAB guideline jc_0701, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Set Data Properties (Stateflow)
Introduced in R2020a