Function File: y = rssq (x)
Function File: y = rssq (x, dim)

Compute the root-sum-of-squares (RSS) of the vector x.

The root-sum-of-squares is defined as

rssq (x) = SQRT (SUM_i x(i)^2)

If x is a matrix, compute the root-sum-of-squares 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, sumsq, rms.

Package: signal