Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Two histograms in one chart  same bin width.
Replies:
3
Last Post:
May 15, 2014 1:23 AM




Re: Two histograms in one chart  same bin width.
Posted:
May 13, 2014 6:19 PM


On Wednesday, May 14, 2014 6:18:10 AM UTC+12, Ulrik Nash wrote: > I have two series of numbers generated by two different normal distributions. There are an equal number of values in each. The first sequence has high variance, the second low variance. The means are equal for each. > > > > What I wish to do is create one chart with two histograms, where each histogram has the same bin numbers and bin intervals. > > > > I though this was a simple matter of using hist(A,bins) hold on hist(B,bins) but it looks as if Matlab ensures that the height of the histograms are roughly equal, by using different bin widths. > > > > How can I instead implement what I am looking for? > > > > Best, > > > > Ulrik.
help stairs



