Mean value for each column in a MAtrix

조회 수: 101 (최근 30일)
Gabriel
Gabriel 2015년 12월 13일
댓글: Gabriel 2016년 2월 14일
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 !

채택된 답변

Image Analyst
Image Analyst 2015년 12월 13일
Try this
columnMeans = mean(yourMatrix, 1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by