Mean of 1st and 2nd, 3rd and 4th, 5th and 6th elements and so on

2 ビュー (過去 30 日間)
Joydeb Saha
Joydeb Saha 2021 年 7 月 13 日
回答済み: Matt J 2021 年 7 月 13 日
I have a 180x1 matrix. I want the mean of 1st and 2nd, 3rd and 4th, 5th and 6th elements like this. The new matrix then have 90 elements. how to do it?

採用された回答

Matt J
Matt J 2021 年 7 月 13 日
mean(reshape(yourMatrix,2,[]))

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by