Mean value for each column in a MAtrix

146 Ansichten (letzte 30 Tage)
Gabriel
Gabriel am 13 Dez. 2015
Kommentiert: Gabriel am 14 Feb. 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 !

Akzeptierte Antwort

Image Analyst
Image Analyst am 13 Dez. 2015
Try this
columnMeans = mean(yourMatrix, 1);

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by