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

채택된 답변

Théophane Dimier
Théophane Dimier 2020년 12월 9일
편집: Théophane Dimier 2020년 12월 9일
Try sqrt(mean(a.^2)), it should work in a simpler way.

추가 답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by