hi,i need to find peakvalues and its indices.

1 回表示 (過去 30 日間)
kaavya subramani
kaavya subramani 2015 年 9 月 2 日
回答済み: Walter Roberson 2015 年 9 月 2 日
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

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by