Main Content

Check usage of logical operators and functions in MATLAB Function blocks

Check ID: mathworks.hism.himl_0010

Description

This check identifies the logical operators and functions operating on operands with numeric data types in MATLAB Function blocks.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
Logical operators or functions used on operands with numeric data types.Type-cast the operands to be of a logical 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.

  • 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.

  • 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.

  • Allows exclusions of blocks and charts.

See Also