Average across many files on matlab -


i wondering if can this. have many .mat files array in each , want average each cell individually (average (1,1)s, (1,2)s, ... (2,1)s etc.) , store them.

thanks help!

i'm not quite sure how data organised, can this:

% assume know size of arrays , variables r , c % hold numbers of rows , columns respectively.  xtotals = zeros(r, c); xcount = 0;   % each file: assume data loaded variable called x, % r rows c columns ...   xtotals = xtotals + x;   xcount = xcount + 1; end  xavg = xtotals / xcount; 

and xavg contain average each array cell. note know xcount without having count each time go round loop, depends on getting data. idea!


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -