Graphics    

Histograms in Cartesian Coordinate Systems

The hist function shows the distribution of the elements in Y as a histogram with equally spaced bins between the minimum and maximum values in Y. If Y is a vector and is the only argument, hist creates up to 10 bins. For example,

generates 10,000 random numbers and creates a histogram with 10 bins distributed along the x-axis between the minimum and maximum values of yn.

Matrix Input Argument

When Y is a matrix, hist creates a set of bins for each column, displaying each set in a separate color. The statements

create a histogram showing 10 bins for each column in Y.


  Histograms Histograms in Polar Coordinates