Importing XLS to a dataset truncates decimal places
3 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I am importing a small XLS file into a dataset with mixed numerical and string data. Upon import Matlab truncates all decimals to 4 places. I don't have any super long # of decimals, but the file contains currency rates which extend up to 8 decimal places.
Is there any way to retain the number of decimal places in the dataset from the original XLS file using mixed data types?
Thanks.
0 件のコメント
回答 (1 件)
Star Strider
2014 年 6 月 30 日
MATLAB is most likely displaying only 4 decimal places. All the data should be there. Consider temporarily setting:
format long
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!