read from a text file
Mostra commenti meno recenti
Hi I have a very big text file containing a huge amount of data, I like to break it down to small parts and read each part separately in order to avoid the 'out of memory' error. is there any idea how to read the data?
Risposta accettata
Più risposte (2)
bahare
il 17 Gen 2012
0 voti
1 Commento
Sven Schoeberichts
il 17 Gen 2012
C = textscan(fid, 'format', N) reads data from the file, using the format N times, where N is a positive integer. To read additional data from the file after N cycles, call textscan again using the original fid.
So it reads N lines. If you run the function again, it takes off where it ended, so you can use a loop to run through your data.
bahare
il 18 Gen 2012
0 voti
Categorie
Scopri di più su Data Import and Export in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!