Dear all,
I want to find mean values of data per day. My data are cells (one cell with 12 columns per day). I did it:
for i=1:size(U(:,1),1); id{i,1}=[find(data(:,1)==U(i,1) & data(:,2)==U(i,2))]; Z{i,1}=data(id{i,1},1:12); m{i,1}=cellfun(@mean,[Z{i,1}(1:12)],'un',0); end
until z works good and the problem is when calculate the mean values m.
Any ideas???
Thank you.
I took the error: Error using cellfun Input #2 expected to be a cell array, was double instead.
Best Answer