I have the Data below and I want to create bins that vary from the lowest to the highest value of the Data(:,2) and I am using
the code as following but I get bins with zero members and that is not what I want.
How can I create a set of bins that have always more than two members on it?
How to use the same binEdges but binning the first 150 values of the Data(:,2) with more than 2 members per bin?? And then doing the same thing and same binEdges but using the second 150 values of the Data(:,2)??
binEdges1=linspace(botEdge1, topEdge1, NumBins);
[h, WhichBin]= histc(Data(:,2),binEdges1);
for i = 1:Numbin