Finding Maximum Values And Putting Auto Cursor

Hello,
I have X and Y data and plotted a figure with these data(with plot(X,Y) code). These X and Y points will be changed with obtaining new experimental results. I want to find the first 3 maximum points of Y and to put auto data cursor on these maximum points.
How can i solve these problems?
Thanks in advance

 採用された回答

KSSV
KSSV 2017 年 3 月 22 日

1 投票

Read about findpeaks. This exactly does what you want.

その他の回答 (0 件)

カテゴリ

質問済み:

2017 年 3 月 21 日

回答済み:

2017 年 3 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by