Skip to content

pk2pk

Peak-to-peak value (max minus min).

M = pk2pk(A)
M = pk2pk(A, dim)

Returns max(A) - min(A) — the range from minimum to maximum value. Common as a signal-amplitude measure.

MathJet-specific (not in MATLAB).

pk2pk([1 5 3 -2 4]) % 7 (5 - -2)
pk2pk(sin(linspace(0,2*pi,100))) % ≈ 2
  • max — Maximum value along a dimension, or elementwise maximum of two inputs.
  • min — Minimum value along a dimension, or elementwise minimum of two inputs.
  • rms — Root mean square.

Also categorized under: Range Functions / Math.