Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to read N number of .log files at a time?

1 Ansicht (letzte 30 Tage)
vaddadi swamy
vaddadi swamy am 9 Jul. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have 4_0.log , 4_5.log, 5_0.log, 5_5.log..... files. How to read all these files and how to make average of the data each individual file?
clc
clear all
close all
format long
W = dlmread('10_0.log','%f',5,1);
E = 10.0
W = sum(W)/(numel(W))

Antworten (1)

Rik
Rik am 9 Jul. 2019
Generate the file names with sprintf and loop over the files.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by