image thumbnail

hist2

version 1.0.0.0 (3.5 KB) by Thomas Gaussiran
Plots a histogram with a gaussian fit to the data.

6.1K Downloads

Updated 18 Jan 2000

No License

M-Files which plot a histogram with a gaussian fit to the data and write the information to the screen as well as on the command line.

The general usage is hfitg(array,num_of_bins) you can also use hfitg(array,num_of_bins,min_value,max_value) Where min_value and max_value will be the min/max limits of the histogram.

The function also calculates the chi^2 of the fit and reports this as well as the number of degrees of freedom.

These routines are based on similar routines in PAW that I found I couldn't live without. Hope they are of use to others.

Cite As

Thomas Gaussiran (2021). hist2 (https://www.mathworks.com/matlabcentral/fileexchange/298-hist2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: Optometrika

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!