Why is xlsread reading incorrect values?
Mostrar comentarios más antiguos
I am reading a spreadsheet into MATLAB using 'xlsread', but for some reason the last few significant digits are incorrect.
For example, when I look at a cell in Excel, its value is 0.625. However, after importing with 'xlsread' in MATLAB, I am seeing:
>> sprintf('%.16f', cellValue)
ans =
'0.6254000000000002'
Why does this happen?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!