Readtable extremely slow when excel file has formatting
32 ビュー (過去 30 日間)
古いコメントを表示
I'm having an issue with using readtable to read in an excel file. When I read in my excel file (which has formatting), the readtable command can take 30 minutes to read a single sheet. However, when I copied and pasted the values into a new excel sheet (no formatting), the command only took 10 s.
I've tried removing styles from the original workbook / sheet and clearing formatting, but oddly, the sheet still takes forever to process. Was wondering if anyone could explain to me why the original excel takes so long to process, but copying and pasting the values into a new sheet makes it so much faster to process.
FYI, I'm using Matlab2017a, although I had this problem with Matlab2016 as well.
回答 (1 件)
Jiro Doke
2017 年 8 月 15 日
編集済み: Jiro Doke
2017 年 8 月 15 日
t = readtable('file.xlsx','basic',false)
5 件のコメント
Bruce MacWilliams
2019 年 6 月 17 日
I had the same problem (2019a), taking 3 minutes to read a relatively small data set. Setting 'basic' to true fixed it, same file takes about 0.5 seconds. Thanks.
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!