How to work out the mean for a number of vectors.
Show older comments
Hello my fellow companions, hope you are having a fine day. I am trying to work out the mean for a number of vectors (I have like 6 vectors, but would be useful for a generic formula to work out for different ones) , an easier way of doing it. A = [2; 3 ; 4 ; 5] B = [2; 4 ; 5 ; 6] C = [1; 5 ; 6 ;7] D = [4; 7; 8; 2] E = [4; 6; 8; 4] F = [4; 6; 2; 2]
The way I do it is to create an array to add all the vectors G= (A+B+C+D+E+F)/3
1 Comment
Image Analyst
on 23 Nov 2013
Here is what Shani asked, so that it will still be here when she deletes this question:
Hello my fellow companions, hope you are having a fine day. I am trying to work out the mean for a number of vectors (I have like 6 vectors, but would be useful for a generic formula to work out for different ones) , an easier way of doing it. A = [2; 3 ; 4 ; 5] B = [2; 4 ; 5 ; 6] C = [1; 5 ; 6 ;7] D = [4; 7; 8; 2] E = [4; 6; 8; 4] F = [4; 6; 2; 2]
The way I do it is to create an array to add all the vectors G= (A+B+C+D+E+F)/3
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!