MathGroup Archive 2009

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

Search the Archive

Re: Using the slider values in a Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99001] Re: [mg98931] Using the slider values in a Manipulate
  • From: "David Park" <djmpark at comcast.net>
  • Date: Thu, 23 Apr 2009 06:46:16 -0400 (EDT)
  • References: <3449288.1240393318044.JavaMail.root@n11>

Don't use Manipulate. Just set up some free standing sliders, maybe with
InputFields to provide alternative methods to enter the values. Then write a
Dynamic statement where you want to use the slider values.

Column[
 {Row[
   {"parm1: ",
    Slider[Dynamic[parm1], {0, 10}], Spacer[5],
    InputField[Dynamic[parm1], FieldSize -> {5, 1}]}](* Row 1 *),
  Row[
   {"parm2: ",
    Slider[Dynamic[parm2], {0, 10}], Spacer[5],
    InputField[Dynamic[parm2], FieldSize -> {5, 1}]}](* Row 2 *)
  }]

Dynamic[parm1] + Dynamic[parm2] x

Dynamic[parm1 + parm2 x]


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: hmalissa [mailto:hans.malissa at gmx.net] 

How can I use the values adjusted with the sliders in a Manipulate
later in the notebook?
The only way seems to be the DynamicModule, but that's not exactly
what I want.
To be more specific: I'm trying to write a notebook for fitting a
model function to experimental data, and I want it to be reusable
since I'll have to use it on different data files again and again.
I want to plot the data and the model inside a Manipulate, and use the
sliders to adjust reasonable startig values for my parameters. That
does work very well, but the next step would be to insert these
starting values (from the slider adjustments) as starting values in
FindFit. How do I achieve this? I don't understand how I could use
DynamicModule to do this, but what other options do I have.




  • Prev by Date: Re: Mathematica in conjunction with outside program; NMinimize fails.
  • Next by Date: Bug in Rational arithmetic?
  • Previous by thread: Re: Using the slider values in a Manipulate
  • Next by thread: Re: Using the slider values in a Manipulate