MATLAB: Take cells outside arrays to form new matrix

cell arraysMATLABmatrix

myarrays ={26*7 double} {43*7 double} …..{32*7 double} i could not get the (1,4) cell of each matrix to calculate the mean. the command i type is >>mean(myarrays{:}(1,4)), but the result have 63 output. how can i get one output of the mean from the (1,4) of all my matrix?

Best Answer

mean(cellfun(@(x) x(1,4), myarrays))