I am running 'if' statement and encounter a problem as such:
The logical returns 'false', but the values themselves do equilibrate. Confused.
Thanks,
Best Answer
I can’t run your code because I don’t have the data. however I believe you’re encountering a problem withOperator Precedence. The equalityup to theor operator is being evaluated as a single expression, and then being compared to‘cosd(theta)’.
Judicious use of parentheses could resolve that, but given the structure of the line you quote, I make no guarantees.
Hello Joshua, For each variable, try this with extra dots in the locations shown. This is because it appears that you want term-by-term multiplication or division of your vector elements, not some kind of matrix multiplication or division.
Best Answer