jc_0701: Usable number for first index
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
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)
Set Data Properties (Stateflow)
Introduced in R2020a