Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7914

Re: plotting histograms with do loop

From "Scot T. Martin" <smartin@seas.harvard.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: plotting histograms with do loop
Date 2012-01-17 08:39 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jf3c4n$nfs$1@smc.vnet.net> (permalink)
References <201201162213.RAA15471@smc.vnet.net>

Show all headers | View raw


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@gmail.com]
Sent: Monday, January 16, 2012 17:13
Subject: 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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: plotting histograms with do loop "Scot T. Martin" <smartin@seas.harvard.edu> - 2012-01-17 08:39 +0000

csiph-web