Main Content

Check usage of relational operators in MATLAB Function blocks

Check ID: mathworks.hism.himl_0008


This check inspects all MATLAB functions in the model, local functions, and referenced MATLAB files for the relational operator statements which operate on operands of different data types.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
Relational operators in the function blocks operating on operands of different data types.Type-cast the operands to be of the same data type.

Capabilities and Limitations

  • This check only analyzes the functions that are directly referenced by the Simulink model.

  • Does not run on library models.

  • You can configure the check to run on referenced MATLAB files using the input parameter Check .m files referenced in the model in the Configuration Editor. By default this parameter is selected.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to all.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Allows exclusions of blocks and charts.

See Also