Why isn't there a huge difference for reading time numerical Excel files between readtable, xlsread and readmatrix?

3 次查看(过去 30 天)
Hi All
I did a benchmarking between readtable, xlsread, and readmatrix, knowing that xlsread is somehow deprecated. I had a really small difference between xlsread and readtable that I will lose again when converting table elements to arrays. The file is an 14336 x 7 (rows x columns) xlsx file. is there a way to speed it up considerably ?
>> xls=xlsread(fname);
>> rdt= readtable(fname);
>> tic;xls=xlsread(fname);toc;
Elapsed time is 2.230238 seconds.
>> tic;rdt= readtable(fname);toc;
Elapsed time is 2.156550 seconds.
>> tic;rdt= readmatrix(fname);toc;
Elapsed time is 2.511168 seconds.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by