How to get the sum of the Mean absolute amplitudes of a signal ?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Maria Amr
il 9 Dic 2020
Modificato: Théophane Dimier
il 9 Dic 2020
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 Commenti
Risposta accettata
Théophane Dimier
il 9 Dic 2020
Modificato: Théophane Dimier
il 9 Dic 2020
Try sqrt(mean(a.^2)), it should work in a simpler way.
0 Commenti
Più risposte (1)
Théophane Dimier
il 9 Dic 2020
Hi!
Have you tried:
y=mean(abs(A));
?
6 Commenti
Théophane Dimier
il 9 Dic 2020
I have copied that solution to a formal answer so you can close the question
Vedere anche
Categorie
Scopri di più su Measurements and Feature Extraction in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!