How to open a .txt file with header information
50 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a large data file, temperature data to be exact, the file output from the sensor is .txt. The first 12 rows are header rows, which I'd like to ignore completely and just focus on the data that is left.
Any help would be greatly appreciated.
0 Kommentare
Antworten (2)
Ameer Hamza
am 8 Mai 2018
Try readtable()
data = readtable(filename, 'HeaderLines', 12);
2 Kommentare
Fangjun Jiang
am 8 Mai 2018
Bearbeitet: Fangjun Jiang
am 8 Mai 2018
importdata(FILENAME, DELIM, NHEADERLINES) loads data from ASCII file FILENAME, reading numeric data starting from line NHEADERLINES+1.
4 Kommentare
Fangjun Jiang
am 8 Mai 2018
all the numerical data are in one line. There is no carriage return. Please attach a text file.
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!