Comparative Operator result is wrong
Ältere Kommentare anzeigen

I tried to run the if statement but this happens.
The result must be true(=1) in the last instruction but it returns false(=0)...
Anyone knows what is the problem???
1 Kommentar
Stephen23
am 12 Apr. 2021
"Anyone knows what is the problem???"
The assumption that binary floating point numbers have infinite precision:
This is worth reading as well:
Antworten (3)
Steven Lord
am 12 Apr. 2021
0 Stimmen
Two numbers that are displayed the same may not represent the same stored value. See this Answers post for more information about floating point numbers.
1 Kommentar
여춘 박
am 12 Apr. 2021
Image Analyst
am 12 Apr. 2021
0 Stimmen
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!