'Matlab finds two variables having same value not equal [duplicate]
Why does Matlab says one variable is greater than the other although the values are same. During execution, I check two vaiables as follows:
f=0.9000
f_end=0.9000
both of them are 1x1 double variables.
But when I check f>f_end, it returns true.
When I check f==f_end, it returns false
Why is that?
If both variables are of the same type and equal, they should be equal logically.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
