Azzera filtri
Azzera filtri

Calculate daily average out of many files per day

4 visualizzazioni (ultimi 30 giorni)
bhavini
bhavini il 23 Ago 2013
Hi, I have about 35 files per day and each file is a 495 X 595 matrix. I want to calculate the mean value out of this 35 files at each point. can anybody help me in this context.
thanks in advance.
Bhavini

Risposte (1)

Grzegorz Knor
Grzegorz Knor il 23 Ago 2013
Let suppose that all file names are stored in filename variable:
d = zeros(495,595,35);
for k=1:35
d(:,:,k) = importdata(filename{k});
end
m = mean(d,3);

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by