MATLAB: 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

data importimporting .txt files

*

Best Answer

d = dir('*.txt');
nfiles = length(d);
for k = 1:nfiles
data = importdata(d(k).name);
% get mean
end
Doc mean
Related Question