Importing text file containing numbers and words
1 view (last 30 days)
Show older comments
Kamia Kavi on 28 Dec 2022
Answered: Jan Studnicka on 28 Dec 2022
I want to import a text file into MATLAB. I want MATLAB to ignore the first 3 lines, detect the 4th line as header, and identify data from the 6th row on. How can it be done?
var1 var2 var3
abc1 100 abc1
abc2 200 abc2
Jan Studnicka on 28 Dec 2022
data = readtable('soubor.txt','NumHeaderLines',3,'ReadVariableNames',true)
More Answers (0)
Find more on Text Data Preparation 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!