Dear all,
I have a 1×3 cell, with tables as it's arrays. I want to have a mean of first column of each table. So the output I need is a 1×3 array.
I tried to do it in this way:
test_means = cellfun(@mean,test,'uni',0);
but I get this error:
Error using sumInvalid data type. First argument must be numeric or logical.Error in mean (line 127) y = sum(x, dim, flag) ./ mysize(x,dim);
And:
test_means = cellfun(@mean,test{:,:}(:,1),'uni',0);
But another error appeared:
Expected one output from a curly brace or dot indexing expression, butthere were 3 results.
Thank you so much
Best Answer