- To do this, make a second text file with the first 15 or so representative rows of your current one.
- Right click on it from the current folder browser and select Import Data, or click on Import Data on the Home Tab.
- Make any selections you have to with regards to delimeters/formats/etc.
- Then underneath the green check for import data, select the drop down menu "Generate Function". # Save this file and then use it to import the original full size file.
Using textscan for large .txt data files
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a .txt file, separated by tabs, with about 150MB and 2 or 3 columns. Import data does not seem to work and I wanted to use the textscan function, since I believe will be the most effective. Is there any special (simple and fast) way to do this? I am new at matlab. Thank you in advance!
0 Kommentare
Antworten (1)
Sean de Wolski
am 17 Mär. 2014
I would use the Import Tool to generate a function that calls textscan.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Large Files and Big Data 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!