How to get the sum of the Mean absolute amplitudes of a signal ?
2 ビュー (過去 30 日間)
古いコメントを表示
I truly appreciate if someone answer me. I need to measure RMS of a seismic signal and I done it with the simple rms code, but my professor asked me to measure RMS of mean absolute amplitude sum(abs(a))/N). Thank you!
signal = ...;
y = rms(signal);
0 件のコメント
採用された回答
Théophane Dimier
2020 年 12 月 9 日
編集済み: Théophane Dimier
2020 年 12 月 9 日
Try sqrt(mean(a.^2)), it should work in a simpler way.
0 件のコメント
その他の回答 (1 件)
Théophane Dimier
2020 年 12 月 9 日
Hi!
Have you tried:
y=mean(abs(A));
?
6 件のコメント
Théophane Dimier
2020 年 12 月 9 日
I have copied that solution to a formal answer so you can close the question
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!