Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica to use it

  1. Feb 25, 2010 #1
    Mathematica to use it!!!

    Hey guys

    I was wondering if there a way to read the variable parameter in Manipulate outside the manipulate , what i mean 4 example :
    Manipulate[ Plot[am E^(-(x - c)^2/(2 sigma^2)) , {x, 0.004, 0.00415}],
    {sigma, 0.00001, 0.00015}, {c, 0.0040754, 0.00415}, {am, 1, 10000}]

    if i change the 'am' or 'c' or 'sigma', how can i use them in other operation, outside the manipulate.

    Thx in advance..
     
  2. jcsd
  3. Feb 26, 2010 #2

    Dale

    Staff: Mentor

    Re: Mathematica to use it!!!

    Simply set some other variable equal to their value, e.g.:

    Manipulate[c1 = c;
    Plot[am E^(-(x - c)^2/(2 sigma^2)), {x, 0.004, 0.00415}], {sigma,
    0.00001, 0.00015}, {c, 0.0040754, 0.00415}, {am, 1, 10000}]

    Then you can use c1 elsewhere.
     
  4. Feb 26, 2010 #3
    Re: Mathematica to use it!!!

    THx a lot, that's very kind of you
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica to use it
Loading...