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


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

Re: How to define a localized indexed object in Manipulate?

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to define a localized indexed object in Manipulate?
Date 2011-12-21 11:53 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jcshc6$267$1@smc.vnet.net> (permalink)
References <jckcdj$1mc$1@smc.vnet.net> <jcn9tk$e1t$1@smc.vnet.net>

Show all headers | View raw


On 12/19/2011 6:15 AM, Armand Tamzarian wrote:

>
> You appear to be asking for the following:
>
> 1. keep all symbols local; and
>
> 2. have p[x] update incrementally when n changes; and
>
> 3. the solution must be a Manipulate.
>
> One possible solution that fits that criteria is this:
>
> Manipulate[
> DynamicModule[{p, x},
>    p@x = 0;
>
>    Column[{
>    	Dynamic[p@x += 1; n, TrackedSymbols :>  {n}],
>    	Dynamic@Row[{"p@x=",p@x}]
>    }],
>
>   {{n, 0, "n"}, 0, 10, 1}]
>
>
> Mike
>

Thanks Mike, yes, your solution solves the problem I had.

--Nasser

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


Thread

How to define a localized indexed object in Manipulate? "Nasser M. Abbasi" <nma@12000.org> - 2011-12-18 09:40 +0000
  Re: How to define a localized indexed object in Manipulate? Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-12-19 12:15 +0000
    Re: How to define a localized indexed object in Manipulate? "Nasser M. Abbasi" <nma@12000.org> - 2011-12-21 11:53 +0000

csiph-web