Message Boards Message Boards

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

Manipulate: how to save the value of a controller variable

Posted 10 years ago
POSTED BY: David K

I'm not entirely sure this answers your question, but here is a very simple example:

values = {}
Manipulate[Column[{x, Button["Add to values", values = Append[values, x];]}], {x, 0, 5}]

Every time the button is hit, the current value of x is added to the list values.

POSTED BY: Jason Grigsby
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