Taking Mean/average
14 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2016 年 4 月 29 日
編集済み: Azzi Abdelmalek
2016 年 4 月 29 日
v=rand(262080,1); %--Example----
v1=mean(reshape(v,15,[]))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!