How to read .log file and extract required data ?

54 vues (au cours des 30 derniers jours)
Harsha M V
Harsha M V le 15 Oct 2017
I have a simulated file in .log format, how to read this file and extract data from a particular row/column ?

Réponses (1)

KL
KL le 15 Oct 2017
Modifié(e) : KL le 15 Oct 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 commentaire
Panagiotis Iliopoulos
Panagiotis Iliopoulos le 16 Déc 2021
Modifié(e) : Panagiotis Iliopoulos le 16 Déc 2021
Neither works actually. it gives me as error:
data2=readtable(files{i,1})
The file extension '.log' is not recognized.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by