why my matlab code calculates the inequality wrongly?
Show older comments
Hello
I am defining inequility for a condition; however, Matlab cannot compare two sides correctly as is attached here. How should I solve this issue?

even matlab says:
-5.4485 >= 1e-6
ans =
logical
0
It is strange!!!!
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!