How to get the sum of the Mean absolute amplitudes of a signal ?

5 Ansichten (letzte 30 Tage)
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);

Akzeptierte Antwort

Théophane Dimier
Théophane Dimier am 9 Dez. 2020
Bearbeitet: Théophane Dimier am 9 Dez. 2020
Try sqrt(mean(a.^2)), it should work in a simpler way.

Weitere Antworten (1)

Théophane Dimier
Théophane Dimier am 9 Dez. 2020
Hi!
Have you tried:
y=mean(abs(A));
?
  6 Kommentare
Maria Amr
Maria Amr am 9 Dez. 2020
Exactly. Thank you!
it seems, this code "sqrt(mean(a.^2))" gives a reasonable answer.
Théophane Dimier
Théophane Dimier am 9 Dez. 2020
I have copied that solution to a formal answer so you can close the question

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Measurements and Feature Extraction finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by