How to work out the mean for a number of vectors.
Afficher commentaires plus anciens
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 commentaire
Image Analyst
le 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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!