return raw means over blocks in summary data Input Y - marsy object mus - means over block. Returns B x N matrix where B is number of blocks, and N is number of ROIs $Id$
0001 function mus = summary_block_means(Y) 0002 % return raw means over blocks in summary data 0003 % 0004 % Input 0005 % Y - marsy object 0006 % 0007 % mus - means over block. Returns B x N matrix 0008 % where B is number of blocks, and N is number 0009 % of ROIs 0010 % 0011 % $Id$ 0012 0013 y = summary_data(Y); 0014 r = block_rows(Y); 0015 0016 B = length(r); 0017 N = size(y, 2); 0018 0019 mus = zeros(B, N); 0020 0021 for b = 1:B 0022 mus(b, :) = mean(y(r{b},:),1); 0023 end