Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

learn more… | top users | synonyms

3
votes
1answer
56 views

How to delete graphics

The code below does not execute as I had intended it to do. Clearly, I do not understand where to go from here. The first click of the mouse sets the initial conditions (t0,x0) for the unique ...
1
vote
1answer
50 views

How to combine manipulate and eventhandler

I combine manipulate and eventhandler, now I can change the controller when working on eventhandler, but how to change the value in eventhandler when I control the manipulate controller? ...
2
votes
1answer
34 views

How can I use parts of lists with Dynamic?

I'm a newbie - what am I doing wrong? I want to use parts of lists (vectors) in calculations but Mathematica will not evaluate anything that involves parts of lists that update dynamically. Is there a ...
0
votes
1answer
31 views

Convert Dynamic to Manipulate

The following code is a modification of Wolfram code I found under ClickPane Help. I want to convert from Dynamic to Manipulate to make it easier for me to add various controls. I do want to keep the ...
1
vote
1answer
35 views

Using Loop to create mutiple EventHandlers

I have a problem, that is I want to use loop to create multiple EventHandlers, but my code shows nothing. What can I do? ...
4
votes
2answers
66 views

Injecting list of controls into manipulate

I am trying to program a method to manually move around graph vertices, and then output the new coordinates. I'd like to turn this into a function that can be called with a variable number of ...
2
votes
1answer
57 views

Multiple dynamic equations for plotting?

Say I have a bunch of equations between variables e.g. h=bcd, i=hce, j=ihbd, ...
0
votes
0answers
26 views

Can anyone help me deduce a matrix inequality? [closed]

The following lemma is taken from references firstly. Lemma 1 [1-2] Given matrices $Q=Q^{T} , F, M$ and $N$ of appropriate dimensions, then $$Q+MFN+N^{T}F^{T}M^{T}<0$$ for all $F$ satisfying ...
8
votes
0answers
227 views

Minesweeper beta:How to Dynamic a lot of graphics with high-speed

Recently I want to write a game,Minesweeper.Here is my completed code. ...
1
vote
0answers
41 views

Wrap custom control inside Manipulate or DynamicModule

[Apologies if this is a duplicate: I have looked at quite a few related questions but have not seen this issue dealt with] I have built a custom control, using the following method: ...
5
votes
2answers
68 views

Using gamepad without dynamic

I am a novice using Mathematica. I program regularly using c like languages though. Now i work on a simulation of a vehicle. I have a loop that calculates the next state of the physical model every dt ...
7
votes
1answer
135 views

Momentary Checkbox

I'm trying to create a demonstration in Mathematica where a checkbox will show an answer, but I only want the answer to be shown while the mouse button is pressed. There seems to be a ...
1
vote
1answer
70 views

“Independent” Variables in Manipulate

I am trying to plot the solutions to the Kepler problem. I am using Manipulate. It plots the orbits, the equipotential lines and the position of the planet. When I move the time variable, only the ...
1
vote
1answer
33 views
2
votes
0answers
44 views

Draw segment in arrayplot and get intensity value and coordinates in segment

I want to segment an arrayplot donut in to 6 pizza slices and export per segment the coordinates and intensity values of the pixels inside of it. I found a good example, which used RegionMember to ...
0
votes
1answer
53 views

Manipulate Slider Value on the Plot

Lets say I have a very simple manipulate in Mathematica given by: Manipulate[Plot[Sin[a x],{x,-2 Pi,2 Pi}],{a,0,5}] I want two things which I am unable to do: I ...
2
votes
1answer
40 views

Button action preventing parallel execution?

I couldn't find a better title, so I'll jump straight to the example! There is this long list of slow jobs to be executed in a parallel way, at the press of a button: ...
0
votes
0answers
23 views

Dynamic Infinite Loop

I'm beginner, so I do not actually realize the whole code that I wrote, but the main idea is that I have to create Grid with those 5 rows: i, Wn[i], Xn[i], Yn[i], Pn[i]. They should be changed ...
0
votes
2answers
39 views

Dynamic nested sum

I would like to dynamically create nested sums with a dynamic number of parameters aswell. We do know the number of variables. Lets say we have 3 Variables with S being an array: $$ i=(1,\dots,m), ...
3
votes
0answers
71 views

Dynamic and Refresh

If I am not mislead by my memory, in Mathematica 6 a function Refresh was introduced, having the options UpdateInterval and ...
1
vote
0answers
56 views

How to get smooth playback of image sequence

I would like smooth animation of a sequence of images, without the controls displayed by ListAnimate. I have a very simple playback function ...
5
votes
1answer
79 views

How to track Part of Symbol or How to symbolize Parts of Symbol without copying data

Let's create simple function: SetAttributes[h, HoldFirst]; h[data_] := Dynamic[Grid[data], TrackedSymbols :> {data}] test = RandomReal[1, {2, 2}]; h[test] ...
3
votes
0answers
67 views

Unimportant change in Dynamic

I just observed an unimportant change in version 10 with respect to Dynamic. The command x=0; Dynamic[x=x+1] returns a cell ...
3
votes
1answer
103 views

How to build a constant Graphics object

I'm making an animation with Manipulate for a representation. The code looks like this ...
4
votes
2answers
151 views

Manipulate in Manipulate

Question 63982 (Altering values in Manipulate with dynamically generated controls) got a very interesting answer from @belisarius, in which he used a Manipulate ...
4
votes
3answers
123 views

Altering values in Manipulate with dynamically generated controls

I have a Manipulate whose controls are generated based on a parameter in a containing Manipulate: ...
0
votes
1answer
68 views

NDSolveValue with a multiple variable equation

I'm trying to plot this equation of motion for a pendulum with a periodically applied torque for 20 cycles, where b, m, L, g are given constant values. ...
5
votes
0answers
55 views

Graph: PropertyValue changes and Dynamic

I almost never work with Graph in Mathematica but lately I helped someone with it. For this, I tried to make an animation using ...
7
votes
1answer
301 views

Oval or Bunimovich stadium

The dynamic billiard demonstration, that can be found on wolfram demonstrations (here), is only designed for an ellipsoid-shape boundary(snapshot below). The idea is to have a dynamic billiard with ...
1
vote
1answer
63 views

Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the ...
6
votes
1answer
195 views

Poincaré map for dynamic billiard

There's a very nice demonstration of dynamic billiard written by Dan S. Reznik that can be found on demonstrations wolfram(along with the code): here I was thinking whether it would be possible to ...
8
votes
2answers
704 views

What is special about 70.329862 and InputField and Number and Dynamic?

Is this a bug (happening in V9 and V10 Windows, Linux) or not? It only happens for certain numbers and you need Number in InputField. ...
2
votes
1answer
71 views

Dynamic interaction with a 3D plot

I have a function: C = 0.0625 + 0.0008*X - 0.0232*Y - 0.0157*Z + 0.0059*X^2 + 0.0112*Y^2 + 0.0160*Z^2 - 0.0063*X*Y - 0.0243*X*Z + 0.0211*Y*Z This equation ...
4
votes
2answers
126 views

Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
2
votes
1answer
52 views

How can I set a RadioButton to invoke an action, like a Button can?

In Mathematica one can create a Button which, when clicked, invokes an action. For example... ...
5
votes
1answer
73 views

Notebook's WindowSize interference with contents' Dynamic ImageSizes

Consider the following MWE: ...
2
votes
1answer
222 views

Dynamic graph construction and visualization (Watts' “Small Worlds” α-model)

I need some help in creating a Mathematica program for building and visualizing Watts' "Small Worlds" α-model. This is a variant of the more known (and much more simple) β-model (also known as ...
1
vote
0answers
56 views

Abort Dynamic Evaluation error

I have been trying to run the example for geographic visualization at: Density of Library Books in the United States The first two lines of this code are: ...
1
vote
1answer
132 views

Help in Bifurcation Diagram

My dears, I need to plot a bifurcation diagram for the following non-linear systems represented by the next Mathematica code ...
2
votes
1answer
87 views

Manipulating parameters in a complex algorithm

I have a complex algorithm that depends on: A wavelet basis A number of sampling points out of a distribution A thresholding value I want to be able to play with different scenarios using ...
2
votes
1answer
103 views

Dynamic process on graph

I have a question, which I failed to find an answer to myself. I'm a casual user of Mathematica, but do have some knowledge about Dynamic module and other "Advanced" features. My problem is ...
6
votes
1answer
58 views

Bug with Initialization in DynamicModule?

In exploring Tracking Initialization, I came across this. The following usually shows a value for x of 300000 to ...
9
votes
1answer
125 views

Tracking Initialization

How to track Initialization step by step? Any tricky solution is ok. One condition, x should be ...
0
votes
0answers
22 views

Why does my Dynamic NonliearModelFit keep running?

I have complex data and which I am fitting to a complex formula. In order to use NonlinearModelFit I split the formula and the data into real and imaginary parts. As usual NonlinearModelFit is ...
12
votes
3answers
280 views

How to manipulate a circle in GeoGebra style?

I want to emulate the GeoGebra app. I want to get an effect like this in Mathematica. I don't know how to move whole circle without changing the radius of the circle. My sample code: ...
5
votes
1answer
120 views

Is there a way to make an interactive plot so one can pan and zoom?

My googling efforts returned nothing so I thought I'd ask here. I often make a ListPlot[] with a huge array, and sometimes it has smaller features that I'd like to take a closer look at, but aren't ...
2
votes
2answers
87 views

How to make functions from datasets

I have a csv that encodes the results of plugging certain parameters (say, A and B) into certain functions (say, ...
4
votes
1answer
157 views

Dynamic panel crashes Mathematica 10.0.0.0

This answer by @paw have revealed a bug that causes Mathematica v 10.0.0.0 to crash the GUI and kernel. So far the offending code is this: ...
4
votes
3answers
136 views

Dynamic ListLinePlot

I have a list of lists looking like this: {{{x1, y1}, {x2, y2}}, {x1, y1},...}}. Furthermore I have defined a legend, which is taken from the filenames. Now I want ...
0
votes
1answer
73 views

Unusual Slow Down with LocatorPane/DynamicModule

I have coded up a little interactive DynamicModule to help me with image processing/segmentation of stacks of timelapse microscopy images. I am experiencing a crippling slow down in the ...