Taking Mean/average

I have a matrix V of 262080x1 in which I want to take average of first 15 values and store in new matrix say V1 then take next 15 values (16-30) take average and store in V1 again and this goes on to size of V.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 29 日
編集済み: Azzi Abdelmalek 2016 年 4 月 29 日

0 投票

v=rand(262080,1); %--Example----
v1=mean(reshape(v,15,[]))

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2016 年 4 月 29 日

編集済み:

2016 年 4 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by