Borrar filtros
Borrar filtros

i had 200 .txt files each having four columns and 2000 rows . i want to import them into matlab and find average of each column .Please help me in coding this

1 visualización (últimos 30 días)
*

Respuesta aceptada

KSSV
KSSV el 13 de Oct. de 2016
d = dir('*.txt');
nfiles = length(d);
for k = 1:nfiles
data = importdata(d(k).name);
% get mean
end
Doc mean
  2 comentarios
Bhargavkrishna Kondreddy
Bhargavkrishna Kondreddy el 14 de Oct. de 2016
Thanks for the help but i am getting an error in import data statement " reference to non existent field Imageset1_001, which is name of the first.txt file

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by