Solved
Werner_EAnswer
25-Diamond I
February 26, 2020
The problem is not because of the units, but rather because a comparison operator won't accept a vector as operand.
One way out would be to turn the calculation into a function (for scalar arguments) and then call this function with the vector as argument and use vectorization:


