finding x axis in findpeaks

20 ビュー (過去 30 日間)
Tino
Tino 2019 年 5 月 28 日
コメント済み: Tino 2019 年 5 月 28 日
Hello
Please I am able to find the peak of my plot
using
pks = findpeaks(m);
This only shows me the values on the y axis
I want to find the corresponding values in the x axis too. Also I will like results of the x axis to come out in the multiple of 2 ( x * 2)
I will be grateful for any help
thanks
Tine

採用された回答

Adam
Adam 2019 年 5 月 28 日
doc findpeaks
clearly shows there are numerous ways to call the function, including:
[pks,locs] = findpeaks(data)
where locs is the index locations of the peaks given in pks.
Reading the documentation should always be your first stop when you want to know how to do something, especially with a function you have already identified so that it is simple to go to the help page of!
  1 件のコメント
Tino
Tino 2019 年 5 月 28 日
Thanks Adam
sorted!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by