which function can calculate standard deviation with weights?

4 次查看(过去 30 天)
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 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by