1-Visitor
September 7, 2022
Solved
Boolean operator not working as expected
- September 7, 2022
- 1 reply
- 981 views
Hello,
I am using a for loop to combine two small matrices. The intent is that if both values exceed 0.2, then the values at an index are to be added together. If either or both of the two values is less than or equal to 0.2, then only the greater of the two values is kept. For some reason, no matter what the index values are the condition where it takes the maximum always triggers.

However, when I tried putting parentheses around the boolean statement (just throwing stuff at the wall), the second operation would always trigger.

I don't understand where I'm going wrong here, I am not proficient with programming in Mathcad.

