![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1671831/2a4b780d23db19bd4b6d129662fdb479.png)
Can I use arithmetic & relational operations in variant conditions?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 26 Sep. 2022
Bearbeitet: MathWorks Support Team
am 28 Sep. 2022
Can I use arithmetic & relational operations in variant conditions?
Akzeptierte Antwort
MathWorks Support Team
am 17 Apr. 2024
Bearbeitet: MathWorks Support Team
am 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1671831/2a4b780d23db19bd4b6d129662fdb479.png)
It is also recommended to limit the usage of the relational operators to ==, ~=, ~ in the variant expressions.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!