How can I divide a sound wave by its rms amplitude?

 채택된 답변

Geoff
Geoff 2012년 4월 17일

1 개 추천

I gave an answer today that required an RMS calculation.
You can make a throw-away function for RMS:
RMS = @(x) sqrt(mean(x.^2));
And then to answer your question:
signal = signal / RMS(signal);

댓글 수: 1

dpb
dpb 2024년 7월 19일
Stumbled on this from suggested links -- beginning with R2012a the Signal Processing TB contains rms which was subsequently moved into MATLAB proper with R2022a.

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

추가 답변 (0개)

카테고리

질문:

2012년 4월 17일

댓글:

dpb
2024년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by