How can I do the average between many vector columns?
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 16 Apr. 2014
mean(A)
2 Kommentare
Azzi Abdelmalek
am 17 Apr. 2014
You can use
mean(A,2)
Umesh Gautam
am 7 Nov. 2023
@Azzi Abdelmalek Thanks...this is a simple solution and it works well.
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!