how to read 2gb txt?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how to read 2gb txt?
The txt file has four columns, n rows (very many rows), all of which are pure numbers.The content of the file is on the photo.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/601515/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/601515/image.jpeg)
0 Commenti
Risposte (1)
Rahul
il 16 Ott 2024
I understand that you wish to read a large txt file with four columns and many rows in MATLAB.
A possible way to approach this can be to read the required data in smaller chunks. Functions like 'datastore' or 'mapreduce' can help to read the data in smaller chunks. It is also mentioned in the following answer with a similar question:
You can also refer to this answer which also mentions reading the data sequentially using the 'fgetl'
You can refer to the following MathWorks documentations to know more about these functions:
Hope this helps! Thanks.
0 Commenti
Vedere anche
Categorie
Scopri di più su MapReduce in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!