필터 지우기
필터 지우기

Calculate daily average out of many files per day

조회 수: 1 (최근 30일)
bhavini
bhavini 2013년 8월 23일
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

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2013년 8월 23일
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);

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by