Losing precision when writing to Excel using xlswrite
3 次查看(过去 30 天)
显示 更早的评论
Hi all, I have a matrix on MATLAB with a very percise values, such as: 2 .268073544251674e+03 but when converting to excel it only shows: 2268.1
I used the following command:
xlswrite('MatrixEvoUNSuc',EvoUnsuc)
Is there anyway I could make sure I don't lose that percision?
Thank you!!
0 个评论
回答(1 个)
Ollie A
2019-1-31
It could be to do with the format of the excel cells. In excel you can increase the number of decimal places displayed.
Otherwise, I tried:
T = table(EvoUnsuc);
writetable(T,'MatrixEvoUNSuc.xls');
which seems to display the number to a higher precision.
8 个评论
Ollie A
2019-1-31
I would try writing the data to a .dat or .txt file instead of .xls.
Reading the data back will be just as easy, and I'm sure the different file format will store all of your data.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!