how to find the bottom peaks in the graph?

31 ビュー (過去 30 日間)
Sun Heat
Sun Heat 2018 年 10 月 1 日
コメント済み: Thumree Sarkar 2019 年 2 月 6 日

how to find decreasing order of peaks in graphs, so that how much graphs goes deeper at higher frequencies (plz refer image.).i have to find the values so that my graph reaches as deeper as possible at higher frequency.

  3 件のコメント
Sun Heat
Sun Heat 2018 年 10 月 1 日
bottom peaks not top peaks of the image file
Thumree Sarkar
Thumree Sarkar 2019 年 2 月 6 日
data= - data, then use findpeaks, you will get the bottom peaks.

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

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 1 日
編集済み: madhan ravi 2018 年 10 月 3 日
[locs,idxs]=findpeaks(-y) %EDITED

If y is the function of the plot -y will give the minimum of the function.

  2 件のコメント
Sun Heat
Sun Heat 2018 年 10 月 1 日
i want multiple peaks but it gives only 64 at 700Mhz. It should also give -36 at 150MHz and many more.
madhan ravi
madhan ravi 2018 年 10 月 3 日
Check the edited code now.

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

その他の回答 (2 件)

Image Analyst
Image Analyst 2018 年 10 月 3 日
Find valleys by sending the inverted vector into findpeaks() and finding the peaks. Then you have to invert again to get the positive values (since you have inverted/negated it):
% Find values and locations:
[negPeakValues, indexesOfValleys] = findpeaks(-signal);
% Invert values to get the original, non-inverted values.
valleyValues = -negPeakValues;

Jim Riggs
Jim Riggs 2018 年 10 月 3 日
Here is a similar problem. To find the bottom peaks, just change one line from
if(D(i) >0 && D(i+1)<0
to
if(D(i)<0 && D(i+1)>0

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by