Average row elements for three columns?

6 views (last 30 days)
Kylie Davis
Kylie Davis on 3 Apr 2016
Answered: Azzi Abdelmalek on 3 Apr 2016
I have three columns of data, each corresponding to one gait cycle normalized to 101 points. I would like to get the average of these three cycles at each data point so that I have one averaged gait cycle that is 101 points.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 3 Apr 2016
a=rand(10,3)
v=mean(a,2)

Community Treasure Hunt

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

Start Hunting!