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

Compute the difference between the maximum and minimum values in the vector x.

If x is a matrix, compute the difference for each column and return them in a row vector.

If the optional argument dim is given, operate along this dimension.

See also: max, min, peak2rms, rms, rssq.

Package: signal