which function can calculate standard deviation with weights?

조회 수: 2 (최근 30일)
vx2008
vx2008 2017년 1월 20일
답변: vx2008 2017년 1월 23일
I know function "std" can get an array's standard deviation;
but now I want to calculate standard deviation with certain weights for each number of array; for example,
X=[1,2,3,4,5]; and weights=[0.1,0.3,0.1,0.3,0.1];
so is there the built-in function in Matlab?

채택된 답변

Walter Roberson
Walter Roberson 2017년 1월 20일

추가 답변 (1개)

vx2008
vx2008 2017년 1월 23일
thank you very much;

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by