Matlab functions for Histogram data Analysis