Main Content

jc_0131: Usage of Relational Operator blocks

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions



Sub ID a

When using a Relational Operator block for comparison of signals and constants, the second (bottom) input shall be used as the constant input.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect


Sub ID a:

  • Using constant values and the same comparison method reduces misinterpretation of the model.


Model Advisor check: Check usage of Relational Operator blocks (Simulink Check)

Last Changed


See Also

Version History

Introduced in R2020a