How to get the sum of the Mean absolute amplitudes of a signal ?
    조회 수: 6 (최근 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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

