hi,i need to find peakvalues and its indices.

1 vue (au cours des 30 derniers jours)
kaavya subramani
kaavya subramani le 2 Sep 2015
eg
u=[25 8 15 5 6 10 10 3 1 20 7];
n=findpeaks(u)
n =
15 10 20
if i use find(u==n) i get error as matrix dimension mismatch

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Sep 2015
u=[25 8 15 5 6 10 10 3 1 20 7];
[n, locs] = findpeaks(u)

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by