MATLAB: RMS amplitude

rms amplitudesound wave

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

Best Answer

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