takes time importing large data files

8 vues (au cours des 30 derniers jours)
Tino
Tino le 16 Juin 2019
Hi
I am trying to import data from csv file with size (1046520 1). Using the importdata function. K = importdata('caamel.csv'); It is taking over an hour to compute my program. What is the fastest way make computation easier when importing very large files
Your help will be highly appreciated
Regards
Tino
  1 commentaire
Walter Roberson
Walter Roberson le 16 Juin 2019
textscan() would probably be faster.

Connectez-vous pour commenter.

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 16 Juin 2019
Hi,
There are several builtin options/functions in MATLAB to get the data imported faster than import wizard or importdata(). They are csvread('caamel.csv'), dlmread('caamel.csv') and ...fscanf(), textscan(). Moreover, if all of your data are numerical and only comma is used as separtor, then you can use load('caamel.csv') command, as well which is much faster than importdata.
Good luck.

Catégories

En savoir plus sur Large Files and Big Data dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by