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!