hi,i need to find peakvalues and its indices.

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by