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!