REad about findpeaks
how to find the bottom peaks in the graph?
32 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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 个)
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;
0 个评论
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
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!