Find the mean of different sections of a matrix

2 views (last 30 days)
So I have a big matrix (822717 x 1) and what I need to do is get the mean of the first 189 rows then the mean of the next 189 rows and so on. And then create a new matrix with these values. I imagine it is a simple problem but I'm new to using Matlab. Any help is appreciated.

Accepted Answer

Walter Roberson
Walter Roberson on 5 Apr 2014
mean(reshape(BigMatrix, 189, []))

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!