MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: plotting histograms with do loop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124337] Re: plotting histograms with do loop
  • From: "Scot T. Martin" <smartin at seas.harvard.edu>
  • Date: Tue, 17 Jan 2012 03:25:54 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201201162213.RAA15471@smc.vnet.net>

Use Table[] in place of Do[].

If you're really attached to Do[], then use Do[Print[...], ...].

Better is Column[Table[...]].


________________________________________
From: hanciong awesome [hanciong at gmail.com]
Sent: Monday, January 16, 2012 17:13
To: mathgroup at smc.vnet.net
Subject: [mg124337] plotting histograms with do loop

hello all, I want to plot several histograms with do-loop. It is
histogram of normal distribution, all with mean zeros, and standard
deviation successively increasing from 1 to 5. I do the following:

Do[   Histogram[RandomReal[NormalDistribution[0, i], 500]],
 {i, 1, 5}  ]

But it doesn't give anything. could anyone help me? Thanx




  • Prev by Date: Re: opposite of AppendTo
  • Next by Date: Re: Extract a part of expression
  • Previous by thread: Re: plotting histograms with do loop
  • Next by thread: Re: plotting histograms with do loop