MATLAB: Mean of 6TH, 7TH AND 8TH numbers of every column

matrix manipulation

I have a 12×41 matrix. I want the mean of 6TH, 7TH AND 8TH numbers of every column. there will be a 41×1 matrix then

Best Answer

myMean = mean(A(6:8,:))