Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

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: [mg124369] Re: plotting histograms with do loop
  • From: Ulrich Arndt <ulrich.arndt at data2knowledge.de>
  • Date: Tue, 17 Jan 2012 05:58:36 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201201162213.RAA15471@smc.vnet.net>

Either use Print

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

But maybe 

Histogram[
 Table[RandomReal[NormalDistribution[0, i], 5000], {i, 1, 5}]]

is more like what you want?

Ulrich

Am 16.01.2012 um 23:13 schrieb hanciong awesome:

> 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: Extract a part of expression
  • Next by Date: Re: How to check whether an infinite set is closed under addition?
  • Previous by thread: Re: plotting histograms with do loop
  • Next by thread: Re: plotting histograms with do loop