28 views (last 30 days)

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);

Théophane Dimier
on 9 Dec 2020

Edited: Théophane Dimier
on 9 Dec 2020

Try sqrt(mean(a.^2)), it should work in a simpler way.

Théophane Dimier
on 9 Dec 2020

Hi!

Have you tried:

y=mean(abs(A));

?

Théophane Dimier
on 9 Dec 2020

maybe something like sqrt(mean(a.^2)) ?

But are you doing the calculation in time domain or in frequency domain?

Théophane Dimier
on 9 Dec 2020

I have copied that solution to a formal answer so you can close the question

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

Start Hunting!
## 0 Comments

Sign in to comment.