text file above 43 mb

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)

Ive J
Ive J on 17 Dec 2020
Edited: Ive J on 17 Dec 2020
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

Asked:

on 17 Dec 2020

Edited:

on 17 Dec 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!