multiple non uniform distributions most common values identification

조회 수: 3 (최근 30일)
CPOR
CPOR 2018년 10월 5일
댓글: Image Analyst 2018년 10월 9일
I need to find the most common values from the 3 main distributions (see figure) from dataInput2.
The code below computes the wrong bins (1-2-3) because the distributions are not normal. Any ideas how I could get the values A-B-C instead? (see figure).....Distributions can change limits, so defining boundaries is not an option
[counts, edges] = histcounts(dataInput2(:,i),500);
temp = sort( edges, 'descend' );
spinPeaks = temp(1:injec);
  댓글 수: 2
CPOR
CPOR 2018년 10월 5일
[counts, edges] = histcounts(dataInput2,500);
temp = sort( edges, 'descend' );
spinPeaks = temp(1:injec);
CPOR
CPOR 2018년 10월 5일
above is the actual code that I'm using...

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

채택된 답변

Image Analyst
Image Analyst 2018년 10월 5일
Call findpeaks() on counts().
By the way, why is B not at "2"?
  댓글 수: 4
CPOR
CPOR 2018년 10월 9일
correct...what I need is A-B-C

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by