![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1716451/image.png)
Simulink上での分散の計算
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Simulink上で,時刻tの時点において,tからNステップ分前までのデータを用いてデータの分散を計算したく思っています。
良い方法をご教示いただけないでしょうか?
0 commentaires
Réponse acceptée
Plus de réponses (2)
Toshinobu Shintai
le 14 Juin 2024
この配列に対して、平均を計算して、各要素から引き算したものの2乗和を計算し、Nで割れば分散を得ることができます。
0 commentaires
Hiroshi Iwamura
le 16 Juin 2024
DSP System Toolbox をお持ちであれば、
Buffer ブロックを使うか、
Moving Variance ブロックでウィンドウ幅を指定することでもできます。
Varianceブロックでもできますが、こちらの "running" モードは廃止予定です。
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!