image thumbnail

histn.m

version 1.0.0.0 (2.09 KB) by Daniel Ennis
This function generates an overlapping histogram of multiple populations.

2K Downloads

Updated 18 Jul 2005

View License

This function generates an overlapping histogram of multiple populations. For a demo simply type "histn".

SYNTAX: h=histn(Y,X,S)

Y - Data array that is NxM where N is the number of groups and M is the number of measures within each group. Right now M has to be the same for each group.

X - Optional input that specifies the bin centers as a vector. If N is a scalar then it specifies the NUMBER of bins

S - Optional flag that turns on(1) or off(0) the display of the population mean and standard deviation. Default is 0.

DBE 2005/03/10

To Do:
1) Improve handling for input of different sized groups
2) Improve "intelligence" of tick label format...based upon range of input data

Cite As

Daniel Ennis (2021). histn.m (https://www.mathworks.com/matlabcentral/fileexchange/8053-histn-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!