how can i find the three peak points of the histogram..

조회 수: 3 (최근 30일)
user06
user06 2015년 1월 12일
댓글: Image Analyst 2015년 1월 19일
i can find 1st peak point, then how can i find the 2nd and 3rd peak of the histogram?

답변 (3개)

Adam
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
user06
user06 2015년 1월 14일
actually i didn't getting how to apply that findpeaks()function.. if u provide me the right example or syntax then i will try..
Adam
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
Stalin Samuel 2015년 1월 13일
sort the data in descending order & take first three values
  댓글 수: 3
Adam
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.
user06
user06 2015년 1월 13일
that code what i posted is only giving me the largest peak.. but i want to know how to find the three peaks of the histogram... and i also wants the same for the lowest point.. plz help its very important for me.

댓글을 달려면 로그인하십시오.


mouh nyquist
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
mouh nyquist
mouh nyquist 2015년 1월 19일
편집: mouh nyquist 2015년 1월 19일
I think it is easy , you need to read a little :-)
Image Analyst
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 CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by