Skip to content

morebins

datafun · scripts/datafun/morebins.m

MOREBINS  Recompute a histogram with more (finer) bins (MATLAB compat).

  [N, EDGES] = MOREBINS (DATA) bins DATA into roughly twice as many bins
  as the automatic rule would choose and returns the bin counts N and the
  bin EDGES.  DATA may be a numeric vector or a struct with a 'Data'
  field (histogram-like object).

  [N, EDGES] = MOREBINS (DATA, NBINS) uses NBINS bins directly.