How to sum a specific number of observations through an entire dataset ?

Sir i have a dataset (say m(750,1)). I have to sum 75 observations from beginning . Means i need sum of 1-75, 76-150, 151-225 ....676-750 observations so that i get the result as m_result(10,1). Would you please help me?

 採用された回答

Mischa Kim
Mischa Kim 2014 年 5 月 17 日
TRAILOKYA, if it is a numeric array use reshape
m_result = sum(reshape(m,75,[]));

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

質問済み:

2014 年 5 月 17 日

回答済み:

2014 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by