On Jun 9, 1:47 pm, "sscnekro " <stiahni.m...@zoznam.sk> wrote:> > point by point mean of each row such that I end up with a new cell> > that is 1x3.>> Hi, I imagine you want to compute something like moving averages? Will some of this be helpful?>> % original cell array> a = cell(4,3);> for ii = 1:(size(a,1) * size(a,2));> a{ii} = rand(150,1);> end>> % ultimate cell array> for ii = 1:size(a,2);> new_cell{ii} = mean(a{ii});> end>> % a small hint for the rest of your work, check out what this line gives> a{3}(3,1)>> BTW, I think there was an unanswered post of yours a few days ago. Did you find the way out? Good luck.

Thank you for the response, but I don't know if that is exactly what Iam looking for. I am trying to get the point by point mean of thedifferent cells in the same column, rather than single value mean ofall three cells. I basically would like to do something like this,but was wondering if there was a better way, say using cellfun orsomething like that:

for zz=1:3%for loop to fill the point by point mean for each column ofthe original cell 'a'new_cell{1,zz}=(a{1,zz}+a{2,zz}+a{3,zz}+a{4,zz})/4;%point by pointaddtion then divided by 4 to get the meanend