CODES / common / hist_fd

Histogram with number of bins defined by the Freedman-Diaconis rule

Contents

Syntax

Example

Plot the histogram of a random sample overlayed with normal pdf $\phi$:

x=normrnd(0,1,1000,1);
figure('Position',[200 200 500 500])
CODES.common.hist_fd(x,@normpdf)

Copyright © 2015 Computational Optimal Design of Engineering Systems (CODES) Laboratory. University of Arizona.

Computational Optimal Design of
Engineering Systems