Using Mathematica: Read Variable Parameters Outside Manipulate

  • Context: Mathematica 
  • Thread starter Thread starter mr_hack
  • Start date Start date
  • Tags Tags
    Mathematica
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
mr_hack
Messages
3
Reaction score
0
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..
 
Physics news on Phys.org


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.
 


DaleSpam said:
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.

THx a lot, that's very kind of you