MATLAB: Put data into bins with the equal number of elements MATLAB I have https://www.mathworks.com/matlabcentral/answers/182552-binning-data-in-equally-spaced-intervals 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. Best Answer I'd suggest looking into this file exchange submission. Related SolutionsMATLAB: Convert categorical to numeric https://www.mathworks.com/matlabcentral/answers/394456-how-to-convert-from-categorical-to-doublehttps://www.mathworks.com/matlabcentral/answers/264383-convert-categorical-to-numeric#answer_311566 MATLAB: Put data into bins with pre-specified intervals Use histcounts and specify the bin edges using the syntax [N,edges] = histcounts(X,edges) Related QuestionSorting into equal sized binsEqual elements in historgam binsQuestion on cell arrayHow to divide a column in equal density bins.How to plot normalised histogram with specific number of binsCount bins
Best Answer