Peaks

Returns the desired peaks of the vector, matrix or signal S. It is only defined for signals with only one channel. A detailed description of the expected arguments is:

  • S, the data whichs peaks shall be returned,

  • mind, the minimal distance (in number of samples) between two peaks (default value is 1),

  • minh, the minimal height of the peaks (default value is -inf),

  • th, the minimal height difference between two peaks (default value is 0),

  • num specifies how many peaks will be returned (if all peaks shall be returned it should be left empty).

Syntax

peaks(S[,mind[,minh[,th[,num]]]])

Types
 Variable NameValue TypeVariable Type
Argument:Sreal, complexsignal, xy-data
Optional:mindrealscalar
minhrealscalar
threalscalar
numrealscalar
Result:  real xy-data
Calculator Input

Use the peaks button to complete the operation.

Examples
IDDescriptionTypeValueExpression
S REAL SIGNAL   signal([1,2,4,6,7],[1,2,3,2,3])
mind REAL11
minh REAL00
th REAL00
num REAL44
pS Result REAL XYDATA   peaks(S, mind, minh, th, num)