How to import big data files

18 visualizaciones (últimos 30 días)
Leo
Leo el 29 de Oct. de 2017
Comentada: Abhishek Singh el 24 de Mayo de 2019
Is there any fast way to import a hugh dataset (approx. 10Mio. rows) into Matlab? I tried importing my csv. file with the help of the import function, but its been running for a couple of hours by now. Has someone an useful advice?
  2 comentarios
Rik
Rik el 29 de Oct. de 2017
How large are those rows? This shouldn't take this long.
One way to reduce time is to figure out the most direct function to do the job, dlmread or csvread in this case.
Leo
Leo el 29 de Oct. de 2017
I have approximately 10 million rows. I want to import the data including their headers.

Iniciar sesión para comentar.

Respuesta aceptada

per isakson
per isakson el 29 de Oct. de 2017
Editada: per isakson el 29 de Oct. de 2017
"running for a couple of hours" that doesn't sound right.
  • How many columns are there?
  • How much RAM do you have?
  • If it's pure numerical data try load -ascii otherwise textscan they are faster.
  14 comentarios
per isakson
per isakson el 23 de Mayo de 2019
Editada: per isakson el 23 de Mayo de 2019
In this context it's a big difference between "pure numerical data" and "mostly some numbers". Either it is 100% numerical or it's not.
Proposal: Post a new question with a good title and more details on the format of the file. Attach an excerpt of the file. A few lines is enough.
If you post a comment here announcing the question, I'll find it.
Abhishek Singh
Abhishek Singh el 24 de Mayo de 2019
Yes, I guess my question is a little bit different to the one here. Yes, the columns are purely numerical.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Standard File Formats en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by