text file above 43 mb
Show older comments
can u please tell me how to read a text file greater tha 43mb in matlab , containing more than 5 million rows and 4 columns
Answers (1)
MATLAB offers lots of ways to read text files, including textscan, readtable, fileread or low-level I/O (fread). However, when you deal with larger files (note that 43 mb is not even close to being large, maybe 2 GB or larger), datastore or memmapfile are quite useful. For start, you can check
doc tabularTextDatastore
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!