I have an array of data that is in variable m1
that is a 288 X 13
array. I need to average 24 rows in sequence 12 times for each column. I have tried many times to use this index we
by calculating an average but I'm getting incorrect answers. My desired outcome (meanf1
) is a 12 X 13
array showing the averages in 12 rows for each column of data. Thanks!
we = 1 25 49 73 97 121 145 169 193 217 241 265
for ii = 1:13;
for jj = 1:12;
meanf1(jj,ii) = mean(m1(we(jj):we(jj)+23,ii));
end;
end`