![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1716451/image.png)
Simulink上での分散の計算
4 views (last 30 days)
Show older comments
Simulink上で,時刻tの時点において,tからNステップ分前までのデータを用いてデータの分散を計算したく思っています。
良い方法をご教示いただけないでしょうか?
0 Comments
Accepted Answer
More Answers (2)
Toshinobu Shintai
on 14 Jun 2024
この配列に対して、平均を計算して、各要素から引き算したものの2乗和を計算し、Nで割れば分散を得ることができます。
0 Comments
Hiroshi Iwamura
on 16 Jun 2024
DSP System Toolbox をお持ちであれば、
Buffer ブロックを使うか、
Moving Variance ブロックでウィンドウ幅を指定することでもできます。
Varianceブロックでもできますが、こちらの "running" モードは廃止予定です。
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!