Input signal, specified as a vector, matrix, N-D array, or
gpuArray object. For complex-valued inputs,
peak2peak identifies the maximum and minimum in complex
magnitude. peak2peak then subtracts the complex number with the
minimum modulus from the complex number with the maximum modulus.
Example: sin(2*pi*(0:255)/4) specifies a sinusoid as a row
vector.
Example: sin(2*pi*[0.1;0.3]*(0:39))' specifies a two-channel
sinusoid.
Data Types: double | single Complex Number Support: Yes
dim — Dimension to operate along positive integer scalar
Dimension to operate along, specified as a positive integer scalar. By default,
peak2peak operates along the first array dimension of
x with size greater than 1. For example, if
x is a row or column vector, y is a
real-valued scalar. If x is an
N-by-M matrix with
N > 1, y is a
1-by-M row vector containing the maximum-to-minimum differences of
the columns of x.