MATLAB: I have a 12090×1 data. I want to convert it into a 1209×1 data. In order to do that, I want the mean of data 1:10, 11:20, 21:30 and so on. How should I do that

batch meanintermediate meansmean

I have a 12090×1 data. I want the to convert it into a 1209×1 data. In order to do that, I want the mean of data 1:10, 11:20, 21:30 and so on till end. How should I do that?

Best Answer

mean(reshape(YourMatrix, 10, [])) .'