MATLAB: Extract data from multidimensional cell array

cell arrayfor loopmultidimensional

In a for loop, I made some calculations and obtained a 50×1 cell array and every cell has :x9 matrices. object count being ':' means it is changeable. 9 is the number of properties and I want to calculate the mean value of every property. I could not take the data from the cell array. Can you please help me? Thanks in advance.

Best Answer

yourcellarray=arrayfun(@(x) randi(10,randi(20),9),1:50,'un',0) %--Example-----
out=cellfun(@(x) mean(x,2),yourcellarray,'un',0)