How to open a .txt file with header information
50 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Fangjun Jiang
2018-5-8
编辑:Fangjun Jiang
2018-5-8
importdata(FILENAME, DELIM, NHEADERLINES) loads data from ASCII file FILENAME, reading numeric data starting from line NHEADERLINES+1.
4 个评论
Fangjun Jiang
2018-5-8
all the numerical data are in one line. There is no carriage return. Please attach a text file.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!