Put data into bins with the equal number of elements

12 views (last 30 days)
I have
that puts data into equal spaced bins.
But I now want to put data into, let me say, 50 bins with the equal number of observations for each bin.
  1 Comment
Steven Lord
Steven Lord on 3 Aug 2020
Which values from this x vector should be in the three bins that each have two elements?
Which values from this x vector should be in the two bins that each have three elements?
x = [1 1 1 1 2 2]

Sign in to comment.

Accepted Answer

Cris LaPierre
Cris LaPierre on 3 Aug 2020
I'd suggest looking into this file exchange submission.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!