CODES / common / hist_fd
Histogram with number of bins defined by the Freedman-Diaconis rule
Contents
Syntax
- CODES.common.hist(x) plots a histogram of x.
- CODES.common.hist(x,pdf) overlays the function pdf on top of it.
Example
Plot the histogram of a random sample overlayed with normal pdf :
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 |