To bin edges in Matlab, you can use the histcounts function which creates a histogram from a set of data and specifies the bin edges.
main.m273 chars13 lines
In this example, the data array contains the values to be binned. The edges array contains the edges of the bins. The histcounts function returns the counts of values that fall into each bin. The resulting histogram is visualized with the bar function.
You can adjust the number and width of the bins by changing the values in the edges array.
gistlibby LogSnag