移動二乗平均平方根(moving RMS)を求めるにはどうすればよいですか?

9 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2016 年 9 月 21 日
回答済み: MathWorks Support Team 2016 年 9 月 21 日
移動二乗平均平方根(moving RMS)を求める方法を教えてください。

採用された回答

MathWorks Support Team
MathWorks Support Team 2016 年 9 月 21 日
MATLAB R2016a 以降では、MATLAB の movstd 関数を使用して移動二乗平均平方根を求めることが可能です。
 
>> A = [4 8 6 -1 -2 -3 -1 3 4 5];
>> M = movstd(A,3,1)
M =
2.0000 1.6330 3.8586 3.5590 0.8165 0.8165 2.4944 2.1602 0.8165 0.5000
R2015b 以前のバージョンの場合は、以下の内容をご検討ください。
Signal Processing Toolbox には、rms 関数がありますが、こちらでは、2乗平均平方根を求めます。
移動二乗平均平方根を求める場合、for ループ内にて適宜区分的に rms 関数を実行してください。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange配列と行列の数学 についてさらに検索

Community Treasure Hunt

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

Start Hunting!