Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
vaddadi swamy
vaddadi swamy el 9 de Jul. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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))

Respuestas (1)

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by