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 Name | Value Type | Variable Type | ||
---|---|---|---|---|
Argument: | S | real, complex | signal, xy-data | |
Optional: | mind | real | scalar | |
minh | real | scalar | ||
th | real | scalar | ||
num | real | scalar | ||
Result: | real | xy-data |
Calculator Input
Use the
button to complete the operation.Examples
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
S | REAL SIGNAL | signal([1,2,4,6,7],[1,2,3,2,3]) | |||
mind | REAL | 1 | 1 | ||
minh | REAL | 0 | 0 | ||
th | REAL | 0 | 0 | ||
num | REAL | 4 | 4 | ||
pS | Result | REAL XYDATA | peaks(S, mind, minh, th, num) |