Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How to get Manipulate results into a variable? tia sal2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86153] Re: How to get Manipulate results into a variable? tia sal2
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Mon, 3 Mar 2008 04:42:58 -0500 (EST)
  • References: <fqeted$jk8$1@smc.vnet.net>

Sal2 schrieb:
> How to get Manipulate results into a variable? tia sal2
>
>
> Greetings All
>
> How can I link variables to the results from the manipulate command.
>
> Example: I would like the output of this command linked to another variable say x.
>
> Manipulate[Factor[x^n - 1], {n, 10, 100, 1}]
>
> tia sal2
>

Try:

In[1]:=Manipulate[remember = Factor[x^n - 1], {n, 10, 100, 1}]

Now the last displayed result of Manipulate ist stored in the
variable "remember"

In[2]:=remember

You can see the changes if you enter:

In[3]:=Dynamic[remember]

but then you can't do e.g.  x=remember because of recursion. 

Gruss Peter
-- 
==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: how format vertex, edge labels in ShowGraph (Mathematica 6)
  • Next by Date: Drawing Tools in 6.0.2
  • Previous by thread: Re: How to get Manipulate results into a variable? tia sal2
  • Next by thread: NDSolve