Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Two histograms in one chart - same bin width.
Replies: 3   Last Post: May 15, 2014 1:23 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Derek Goring

Posts: 3,919
Registered: 12/7/04
Re: Two histograms in one chart - same bin width.
Posted: May 13, 2014 6:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.