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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by