MATLAB: Mean value of a matrix subarray

MATLABmatrixmatrix arraymeanmean valuesubarray

Hello!!
I have a matrix of 14000x7x3 elements.
I want to calculate the mean value of the elements in rows 4000 to 5000 of the third colum page 2.
How can I do it?
Thank you in advanced

Best Answer

mean(A(4000:5000,3,2))