フィルターのクリア

How to implement this formula in MatLab?

2 ビュー (過去 30 日間)
Serhii Sheinych
Serhii Sheinych 2019 年 11 月 25 日
コメント済み: Serhii Sheinych 2019 年 11 月 25 日
n is a constant = 100
x is an array of 100 rand elements

採用された回答

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2019 年 11 月 25 日
directly:
n=100;
x=rand(1,n);
s=std(x)
or with a loop:
n=100;
x=rand(1,n);
xmean=mean(x);
sumt=0;
for i=1:n
sumt=sumt+(x(i)-xmean)^2;
end
s=sqrt(sumt/(n-1))
  1 件のコメント
Serhii Sheinych
Serhii Sheinych 2019 年 11 月 25 日
Thank You!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by