フィルターのクリア

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 Center および File ExchangeWorkspace 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