Find the mean of different sections of a matrix

1 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2014-4-5
mean(reshape(BigMatrix, 189, []))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by