Import data tool speed

2 views (last 30 days)
Brad_EE
Brad_EE on 11 Dec 2020
Commented: Yair Altman 2020年12月13日
Platform: W10-64bit, 4 core, 500GB SSD, 32GB Ram
文件导入说明:80MB,包含逗号界数字和短字符数组。总体格式27列x 400k线。
Clicking the import data tool icon prompts for a file name, shows a message "Opening a large text file ..." and then displays the file contents in a table format on the GUI after ~5 seconds. The table displayed matches the file contents.
在同一GUI上,我将输出类型设置为单元格数组,并范围为A2:AA395201(整个文件减去标头线)。单击“导入选择”按钮显示消息“导入数据...”和一个状态栏,该状态栏在突然消失之前保持灰色35分钟。在那时,导入已完成,变量名出现在工作区中。
Why does the initial opening large text file finish in 5 seconds but the import take 35 minutes? It seems for the opening large text file step to complete and display the data in the GUI table, it has essentially imported the data but 500X faster!

Accepted Answer

Yair Altman
Yair Altman 2020年12月13日
导入工具GUI仅根据文件中的顶部n行向您显示数据的预览,它不会读取和处理整个文件。仅当您单击按钮是根据您指定的所选范围和预览检测到的文件格式处理的整个文件。这自然需要比预览处理更长的时间。
4条评论
Yair Altman
Yair Altman 2020年12月13日
Yes, this is exactly what I meant

Sign in to comment.

More Answers (0)

Categories

美军陆军nity Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

开始狩猎!