필터 지우기
필터 지우기

How to read .log file and extract required data ?

조회 수: 53 (최근 30일)
Harsha M V
Harsha M V 2017년 10월 15일
편집: Panagiotis Iliopoulos 2021년 12월 16일
I have a simulated file in .log format, how to read this file and extract data from a particular row/column ?

답변 (1개)

KL
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
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 CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by