Mean value for each column in a MAtrix

148 vues (au cours des 30 derniers jours)
Gabriel
Gabriel le 13 Déc 2015
Commenté : Gabriel le 14 Fév 2016
Hi guys, I am having some trouble when I try to use the "mean"function in a matrix. I have a 3 column matrix (around 80 lines) and I'd like to know the mean value from each column separatelly. First I import the excel file but after that I am not sure how to do it.
Does anyone knows how to?
Thanks in Advance !

Réponse acceptée

Image Analyst
Image Analyst le 13 Déc 2015
Try this
columnMeans = mean(yourMatrix, 1);

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by