Re: UI Question / Threading
- To: mathgroup at smc.vnet.net
- Subject: [mg78471] Re: [mg78423] UI Question / Threading
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Mon, 2 Jul 2007 06:58:25 -0400 (EDT)
- References: <9860934.1183292495089.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
Try this: Needs["Histograms`"] For[eigenvalues = {}; i = 1, i <= 10000, i++, eigenvalues = {eigenvalues, Eigenvalues@RandomReal[{0, 10}, {2, 2}]}; Divisible[i, 50] && (plot = Histogram[eigenvalues = Flatten@eigenvalues, PlotLabel -> i]) ] Dynamic@plot Bobby On Sun, 01 Jul 2007 06:43:15 -0500, jbaker75 at gmail.com <jbaker75 at gmail.com> wrote: > Hi - > > I would like to do the following simple task, but cannot find out how > to do it. I would like to create a simple UI in mathematica that > updates itself on a regular basis. For example, I spawn a process that > computes the eigenvalues of a "random" matrix. I do this 1000 times. > If the matrix is large, this may take some time in a single thread. > Rather, while I do this, I would like to update a graphic showing the > density of states..., i.e. a histogram of the eigenvalues. I would > like to update regularly, say every fifty experiments. > > Can anyone point me in the right direction?? I am using Mathematica > 6.0. But also have 5.2 as well. > > Thank you! > Jeff Baker > > > -- DrMajorBob at bigfoot.com