how can i find the three peak points of the histogram..
Ältere Kommentare anzeigen
i can find 1st peak point, then how can i find the 2nd and 3rd peak of the histogram?
Antworten (3)
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 Kommentare
user06
am 12 Jan. 2015
Image Analyst
am 12 Jan. 2015
Adam
am 12 Jan. 2015
Incidentally, how do you find the first peak?
user06
am 13 Jan. 2015
Bearbeitet: Image Analyst
am 13 Jan. 2015
Adam
am 13 Jan. 2015
That gives you the largest peak, not necessarily the first peak
user06
am 13 Jan. 2015
Image Analyst
am 13 Jan. 2015
Did you try his original suggestion of using findpeaks()? Why not?
user06
am 14 Jan. 2015
Adam
am 15 Jan. 2015
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
am 13 Jan. 2015
0 Stimmen
sort the data in descending order & take first three values
mouh nyquist
am 15 Jan. 2015
0 Stimmen
you can save your histogram as a variable and then use the file (peak finder in matlab exchange file)
7 Kommentare
user06
am 16 Jan. 2015
mouh nyquist
am 16 Jan. 2015
first have you finded the file in matlab files exchange
user06
am 16 Jan. 2015
mouh nyquist
am 16 Jan. 2015
see the attached file ; all the best
user06
am 19 Jan. 2015
mouh nyquist
am 19 Jan. 2015
Bearbeitet: mouh nyquist
am 19 Jan. 2015
I think it is easy , you need to read a little :-)
Image Analyst
am 19 Jan. 2015
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
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!