필터 지우기
필터 지우기

Function: var,mean,std how to use on the matrix?

조회 수: 3 (최근 30일)
x y
x y 2014년 12월 2일
답변: Thorsten 2014년 12월 2일
Hy , I have question about,when I get data matrix [ 100 x 4 - size ] In the statistics problems I must do for whole matrix too get mean,std,var functions - for answer the question what is the mean of data ?
data = 100 x 4
V = mean(data,1)
V =
1 2 3 4
V2 = mean(V,1)
V2 =
2.5000

채택된 답변

Thorsten
Thorsten 2014년 12월 2일
Use : to convert your matrix to a vector and then use mean, var, etc:
m = mean(V(:));

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by