How can I do the average between many vector columns?
古いコメントを表示
I have 120 1x500 vector columns, so I can't do it manually. For example, I have the following vector columns, each 1x500 in size:
a1, a2, ......, an, where n=120
I want to do:
(a1 + a2 + ... + an)/n
Thank you very much!
Adrian
採用された回答
その他の回答 (1 件)
Azzi Abdelmalek
2014 年 4 月 16 日
mean(A)
2 件のコメント
Azzi Abdelmalek
2014 年 4 月 17 日
You can use
mean(A,2)
Umesh Gautam
2023 年 11 月 7 日
@Azzi Abdelmalek Thanks...this is a simple solution and it works well.
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!