NA-MAAB — a
JMAAB — a
Block parameters shall not be used to describe:
Data type conversion
Selection of rows or columns
Sub ID a:
Operation expressions, data type conversion, or row or column selection become a magic number in generated code, which makes consistency between the model and code difficult to maintain. Adjusting parameters also becomes difficult.
Describing the calculation formula within the block decreases readability.
The result of executing a MATLAB command is reflected in the code, which makes consistency between the model and code difficult to maintain.
Model Advisor check: Check usage of tunable parameters in blocks (Simulink Check)
JMAAB guideline db_0110, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.