How to average multiple rows into a single row?

1 Ansicht (letzte 30 Tage)
hithere
hithere am 23 Dez. 2014
Beantwortet: dpb am 23 Dez. 2014
I have a 24 x 53513 array
I like to average the 24 rows into a single row.
Lets say:
A = 2 3 4 5 6
1 4 5 6 1
3 5 6 7 5
I want it to be like:
B = 2 4 5 6 4
How should I code it?

Antworten (1)

dpb
dpb am 23 Dez. 2014
B=mean(A);
Read
doc mean
And then go thru the tutorial info in "Getting Started" to learn the basics of Matlab...

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by