how can i find the three peak points of the histogram..
7 次查看(过去 30 天)
显示 更早的评论
i can find 1st peak point, then how can i find the 2nd and 3rd peak of the histogram?
0 个评论
回答(3 个)
Adam
2015-1-12
编辑:Adam
2015-1-12
doc findpeaks
if you have the Signal Processing Toolbox.
Although you don't say which histogram you are referring to.
If you don't have the Signal Processing toolbox you can search for find peaks or similar on Matlab Exchange for code that will do the same.
9 个评论
Adam
2015-1-15
The help page for findpeaks gives something like 7 or 8 examples. I haven't memorised the syntax so you might as well look at the examples yourself rather than me spend time doing it just to repeat them for you here!
Stalin Samuel
2015-1-13
sort the data in descending order & take first three values
3 个评论
Adam
2015-1-13
That won't give you peaks. Quite likely it will give you the largest peak and the two values either side of it.
mouh nyquist
2015-1-15
you can save your histogram as a variable and then use the file (peak finder in matlab exchange file)
7 个评论
Image Analyst
2015-1-19
You can use findpeaks() like Adam already told you, but you just have to invert your signal so that valleys now become peaks.
upsidedownSignal = max(signal) - signal;
theValleys = findpeaks(upsidedownSignal);
In the future, you can make this a lot faster and more effective if you attach your data so people have something to work with. See this link
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!