How to read .log file and extract required data ?

52 visualizaciones (últimos 30 días)
Harsha M V
Harsha M V el 15 de Oct. de 2017
Editada: Panagiotis Iliopoulos el 16 de Dic. de 2021
I have a simulated file in .log format, how to read this file and extract data from a particular row/column ?

Respuestas (1)

KL
KL el 15 de Oct. de 2017
Editada: KL el 15 de Oct. de 2017
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 comentario
Panagiotis Iliopoulos
Panagiotis Iliopoulos el 16 de Dic. de 2021
Editada: Panagiotis Iliopoulos el 16 de Dic. de 2021
Neither works actually. it gives me as error:
data2=readtable(files{i,1})
The file extension '.log' is not recognized.

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by