Message Boards Message Boards

0
|
3500 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Associate the value obtained with Manipulate to a new variable?

Posted 8 years ago

Hi, I would like to know how to associate the value obtained with manipulate to a new variable. For example:

Manipulate[A, {A, 1000, 5000}]   

If I choose a value of A= 2000 with manipulate, how can I use this value for a new variable, for example

B=A

My best regards,

Jack

POSTED BY: giacomo morosini

You can try just assigning it, like this

Manipulate[
 b = a; (*seeting new variable to a *)
 Column[{a, b}],
 {a, 1000, 5000},
 TrackedSymbols :> {a}]

Now b gets the value of a each time a is changed.

enter image description here

POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract