y =
rms (x)
¶y =
rms (x, dim)
¶Compute the root-mean-square (RMS) of the vector x.
The root-mean-square is defined as
rms (x) = SQRT (1/N SUM_i x(i)^2)
If x is a matrix, compute the root-mean-square for each column and return them in a row vector.
If the optional argument dim is given, operate along this dimension.
See also: mean, meansq, peak2rms, rssq, sumsq.
Package: signal