How to read .log file and extract required data ?
52 次查看(过去 30 天)
显示 更早的评论
I have a simulated file in .log format, how to read this file and extract data from a particular row/column ?
0 个评论
回答(1 个)
KL
2017-10-15
编辑:KL
2017-10-15
if the file has table like structure just use,
data = readtable('yourfilename.log')
if you don't want the output as table but an array, then
data = dlmread('yourfilename.log')
1 个评论
Panagiotis Iliopoulos
2021-12-16
编辑:Panagiotis Iliopoulos
2021-12-16
Neither works actually. it gives me as error:
data2=readtable(files{i,1})
The file extension '.log' is not recognized.
另请参阅
类别
在 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!