Plot a univariate histogram

(a little easier than with HIST)
2.8K Downloads
Updated 4 Apr 2016

View License

Function HISTF ('flexible histogram') extends Matlab's HIST by letting one bound displayed percentiles, set x-axis limits and y-axis maximum, set x bin size, and draw a marker line at given x position. In contrast to HIST, relative rather than absolute frequencies are displayed. (Note: when range of x is limited with [pmin, pmax], no adjustment for truncation is made. The cut-offs are meant to exclude 'extreme', low-mass values).

Cite As

Dimitri Shvorob (2024). Plot a univariate histogram (https://www.mathworks.com/matlabcentral/fileexchange/14597-plot-a-univariate-histogram), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Histograms in Help Center and MATLAB Answers
Acknowledgements

Inspired: Bootstrap a statistic

Community Treasure Hunt

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

Start Hunting!

histf/

histf/html/

Version Published Release Notes
1.0.0.0

BSD
cosmetic revision