BINDATA is the jStats module of jLab.

 BINDATA  Rapidly sort data into adjacent bins.
 
    BINDATA is a low-level function called by the TWOD* functions.
 
    As of Matlab 2015b, note that this function is no longer recommended.
    Matlab's HISTCOUNTS2 accomplishes the same thing but vastly faster. 
    BINDATA is included for compatibility with older versions of Matlab. 
  
    [NUM,XI]=BINDATA(BIN,X) sorts the array X by its values into adjactent
    bins, with bin edges given by BIN. 
 
    NUM and XI are arrays of the same size as X.  NUM gives the bin 
    number to which the corresponding elements of X are assigned, and 
    XI is the midpoint value of that bin.
 
    [NUM,XI,MID]=BINDATA(BIN,X) also returns an array MID of the bin
    midpoints, which has length LENGTH(BIN)-1.
   
    BINDATA uses a clever algorithm to run amazingly fast. 
  
    BINDATA is useful for making histograms of large datasets.
 
    'bindata --t' runs a test.
 
    See also TWODHIST, TWODSTATS, TWODMED.
 
    Usage: [num,xi]=bindata(bin,x);
           [num,xi,xmid]=bindata(bin,x);
    __________________________________________________________________
    This is part of JLAB --- type 'help jlab' for more information
    (C) 2008--2015 J.M. Lilly --- type 'help jlab_license' for details

contents | allhelp | index