Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Find local maxima

`TF = islocalmax(A)`

`TF = islocalmax(A,dim)`

`TF = islocalmax(___,Name,Value)`

`[TF,P] = islocalmax(___)`

specifies additional parameters for finding local maxima using one or more
name-value pair arguments. For example,
`TF`

= islocalmax(___,`Name,Value`

)`islocalmax(A,'SamplePoints',t)`

finds local maxima of
`A`

with respect to the time stamps contained in the time
vector `t`

.

`[`

also returns the prominence corresponding to each element of `TF`

,`P`

] = islocalmax(___)`A`

for any
of the previous syntaxes.

`ischange`

| `islocalmin`

| `isoutlier`

| `max`

Was this topic helpful?