hi,i need to find peakvalues and its indices.

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by