How to import big data files
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Leo
am 29 Okt. 2017
Kommentiert: Abhishek Singh
am 24 Mai 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 Kommentare
Rik
am 29 Okt. 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.
Akzeptierte Antwort
per isakson
am 29 Okt. 2017
Bearbeitet: per isakson
am 29 Okt. 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 Kommentare
per isakson
am 23 Mai 2019
Bearbeitet: per isakson
am 23 Mai 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
am 24 Mai 2019
Yes, I guess my question is a little bit different to the one here. Yes, the columns are purely numerical.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Standard File Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!