How to get the sum of the Mean absolute amplitudes of a signal ?
5 次查看(过去 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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Feature Extraction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!