jc_0622: Usage of Fcn blocks
Sub ID Recommendations
NA-MAAB — No recommendations
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
When a Fcn block has operators with different priorities, parentheses shall be used to specify the priority order.
Custom Parameter
Not Applicable
Rationale
Sub ID a:
When operators have different priorities and the computation order is not clearly specified by using parentheses, readability is impaired and can be misinterpreted. This can result in unintended behavior.
Verification
Model Advisor check: Check for parentheses in Fcn block expressions (Simulink Check)
Last Changed
R2020a
See Also
JMAAB guideline jc_0622, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Version History
Introduced in R2020a