How to show peak coordination
1 回表示 (過去 30 日間)
古いコメントを表示
How can I show the x ,y coordinate of each peak (dot).
0 件のコメント
採用された回答
Monisha Nalluru
2021 年 3 月 12 日
findpeaks() is used to find the local maxima in given data
As an example
x = 1:9;
pp = [50 100 1800 300 2500 1500 3000 3500 5800];
[pks,locs] = findpeaks(pp);
figure
plot(x, pp)
hold on
plot((locs), pks, 'r*') % plot the peaks in red
hold off
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!