rms
Root mean square.
Syntax
Section titled “Syntax”M = rms(A)M = rms(A, dim)Description
Section titled “Description”Returns sqrt(mean(A.^2)) — the root mean square value. Common in signal-processing applications (effective amplitude of a waveform).
Examples
Section titled “Examples”rms([3 4]) % 3.5355 (sqrt((9+16)/2))rms(sin(linspace(0, 2*pi, 1000))) % ≈ 0.707 (sin RMS)See also
Section titled “See also”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.