Comparative Operator result is wrong
Mostrar comentarios más antiguos

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 comentario
Stephen23
el 12 de Abr. de 2021
"Anyone knows what is the problem???"
The assumption that binary floating point numbers have infinite precision:
This is worth reading as well:
Respuestas (3)
Steven Lord
el 12 de Abr. de 2021
0 votos
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 comentario
여춘 박
el 12 de Abr. de 2021
Image Analyst
el 12 de Abr. de 2021
0 votos
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!