peak2peak
Difference between maximum and minimum values.
📝Syntax
Y = peak2peak(X)
Y = peak2peak(X, "all")
Y = peak2peak(X, DIM)
Y = peak2peak(X, VECDIM)
📥Input Arguments
Parameter Description
X input data.
DIM dimension to operate along.
VECDIM vector of dimensions to operate along.
📤Output Arguments
Parameter Description
Y peak-to-peak value.
📄Description

peak2peak computes max(X) - min(X).

💡Examples
y = peak2peak([1 4 -2]);
🔗See Also
rms
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub