RMS - RMS value of signal

Usage:
  • y = rms(x)

Description:

RMS(x) computes the RMS (Root Mean Square) value of a finte sampled signal sampled at a uniform sampling rate.

The RMS value of a signal x of length N is computed by
                    1  M
     rms(x) = sqrt( - sum x(n)^2 )
                    N n=1