How to read .txt file with numbers and texts?

6 views (last 30 days)
Elaheh on 30 Apr 2018
Commented: Walter Roberson on 1 May 2018
Hello. I have a .txt file including numbers and texts separated by tabs. I have tried dlmread, csvread, etc but not still able to get the file content as a matrix. I do not know what is wrong. I appreciate your help.
SCRIPTfile = char(file);

Answers (1)

Walter Roberson
Walter Roberson on 30 Apr 2018
Use readtable(); it will figure everything out automatically.

Sign in to comment.


Find more on Dates and Time 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!