How can i average a 1-D array every n elements?

3 ビュー (過去 30 日間)
Gustavo Zapata
Gustavo Zapata 2019 年 7 月 7 日
回答済み: infinity 2019 年 7 月 7 日
I have a 1-D array of N elements, and i want to average them every k elements, but i want the output to still have the N size. Also N may or may not be an integer multiple of k. How can i do that?

回答 (1 件)

infinity
infinity 2019 年 7 月 7 日
Hello,
I think this function is exactly what you want

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by