Skip to content

rms

Root mean square.

M = rms(A)
M = rms(A, dim)

Returns sqrt(mean(A.^2)) — the root mean square value. Common in signal-processing applications (effective amplitude of a waveform).

rms([3 4]) % 3.5355 (sqrt((9+16)/2))
rms(sin(linspace(0, 2*pi, 1000))) % ≈ 0.707 (sin RMS)
  • mean — Arithmetic mean.
  • std — Standard deviation.
  • avgabs — Mean of absolute values.
  • pk2pk — Peak-to-peak value (max minus min).

Also categorized under: Range Functions / Math.