Can I use arithmetic & relational operations in variant conditions?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 17 Apr 2024 at 0:00
Edited: MathWorks Support Team on 28 Sep 2022
It is not recommended to use arithmetic operations in variant conditions. The Note in this documentation explains further. Please use the option error for the below diagnostic in the configuration parameters.
It is also recommended to limit the usage of the relational operators to ==, ~=, ~ in the variant expressions.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!