Create histogram from ecdf output.
N = nan_ecdfhist(F,X) N = nan_ecdfhist(F,X,M) N = nan_ecdfhist(F,X,C) [N,Cout] = nan_ecdfhist(...) nan_ecdfhist(...,'plot') produces a histogram bar plot of the results.
vector of empirical cdf values
vector of evaluation points
uses M bins instead of 10
vector with centers of bins
heights of histogram bars for 10 equally spaced bins
position of the bin centers
The bar heights of the histogram are computed from the increases in the empirical cdf, and are normalized so the area for each bar represents the probability for the corresponding interval. If F is computed from a censored sample, the total probability may be less than 1. In contrast, HIST produces bars whose heights are bin counts and whose areas do not represent probabilities.