title: How to average over a cell-array of arrays?
body: <p>I have a cell array <code>c</code> of equal-sized arrays, i.e. <code>size(c{n}) = [ m l ... ]</code> for any <code>n</code>. How can I get the <code>mean</code> values (averaging over the cell array index <code>n</code>) for all array elements in one sweep? I thought about using <code>cell2mat</code> and <code>mean</code> but the former does not add another dimension but changes <code>l</code> to <code>l*n</code>. And looping manually of course takes like forever...</p>