Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Find the mean of different sections of a matrix

Asked by jono on 5 Apr 2014
Latest activity Commented on by jono on 5 Apr 2014

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.

0 Comments

jono

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 5 Apr 2014
Accepted answer
mean(reshape(BigMatrix, 189, []))

1 Comment

jono on 5 Apr 2014

Perfect. Thanks a lot!

Walter Roberson

Contact us