Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.
0
votes
1answer
77 views
2
votes
3answers
150 views
Making a multiple choice button
I've written the following code to create a multiple choice button that takes an arbitrary number of answer options and will assign a variable true/false depending on whether or not the correct choice ...
0
votes
2answers
52 views
How to compute values only if input fields are filled?
In the following code how can I keep the DynamicModule from computing values if the input values are not all filled? If I don't specify default values it will show the code used to compute the values ...
0
votes
0answers
22 views
Asynchronous evaluation of a button's action [duplicate]
What would be the best way to have the value of x update before the pause (or a similarly slow function) finishes executing?
...
4
votes
4answers
195 views
How to avoid writing $K$ loops?
I want to evaluate a mathematical function of $K$ variables each of variables varying between 1:N. One way to do this is writing $K$ loops and varying variables accordingly, as shown below:
...
2
votes
1answer
62 views
Change the behaviour of a LocatorPane
Normally, LocatorPane detects any single click as in the following example:
...
0
votes
1answer
95 views
How can I update a table in a Manipulate without generating a new table? [closed]
I have a table in a manipulate command that adds points as you up the slider. I want to make the manipulate command "ignore" previous entries in the table and just add new entries as the slider is ...
4
votes
3answers
133 views
What is the right way to construct DynamicModule
When I'm creating DynamicModules for CDF purposes I'm usualy basing on my experience with that, particular goal and content rather than on deep insight.
I want to ...
3
votes
3answers
119 views
Extracting the coordinates of a point of interest from a ListDensityPlot
How can I extract coordinates from a list density plot.
Example plot of interest:
I need to place two points on either side of the center white circle and calculate the distance between them. My ...
0
votes
2answers
63 views
Assigning several values inside DynamicModule
I have coded a model that contains several parameters. The parameters can be changed interactively by the user using an interface contained in a DynamicModule[].
There are several "basic states" of ...
0
votes
3answers
95 views
Plotting function with Dynamic parameter
I'm trying to get this code working:
a = 2;
func[t_] := Dynamic[t + a];
Plot[func[t], {t, -5, 5}]
The idea is: I'd like to have the dynamic parameter a change ...
0
votes
0answers
40 views
Embedded CDF Not Working
I happened to be looking at an old CDF (19 months old). It previously worked and does not now. It works if downloaded (opening or at URL). It requires dynamic functionality to be enabled but no longer ...
1
vote
2answers
87 views
Plotting a dynamical NonlinearModelFit Function
Currently I'm playing around with dynamics and the NonlinearModelFit function.
To be precise, I want to fit a function the data, which range I want to specify ...
3
votes
3answers
154 views
Slow image manipulation
This is some extremely simple code that shows an image and manipulates a circle (that will be used to select a region of the image to analyze). All those Dynamics ...
1
vote
2answers
126 views
How to make a Dynamic Calculator to solve a quadratic equation?
Taking my first steps in the world of Mathematica Programming.
The aim of my program was to modify Wolfram's dynamic calculator
(which performs an addition subtraction and a product - in response ...