필터 지우기
필터 지우기

How to find the mean of data contained in a column of a table?

조회 수: 20 (최근 30일)
kelvina
kelvina 2014년 1월 28일
편집: A Jenkins 2014년 1월 28일
i want the mean of the values stored in a column of a table. how can i do that?
For example :
1 11
2 22
3 33
4 44
5 55
is the column data. how to find mean of this both columns and store them in a variable.

채택된 답변

A Jenkins
A Jenkins 2014년 1월 28일
편집: A Jenkins 2014년 1월 28일
a=[1 11; 2 22; 3 33; 4 44; 5 55]
b=mean(a)
b =
3 33

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 28일
편집: Azzi Abdelmalek 2014년 1월 28일
A=[1 11; 2 22;3 33;4 44;5 55]
out=mean(A)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by