Histogram to PDF in Matlab — normalize bins and overlay the theoretical curve
Turn a Matlab histogram into an estimated PDF: normalize by sample count and bin width, then overlay normpdf / theoretical densities for Gaussian, Rayleigh, and exponential checks.