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)
Mostrar comentarios más antiguos
Bhargavkrishna Kondreddy
el 13 de Oct. de 2016
Comentada: KSSV
el 15 de Oct. de 2016
*
0 comentarios
Respuesta aceptada
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
Más respuestas (0)
Ver también
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!