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

learn more… | top users | synonyms

1
vote
1answer
44 views

How do you hide/show a dynamic element in a list?

Here is the simplified version of the problem: THIS: {1,2,##&[],4,5} RETURNS: {1,2,4,5} ...
1
vote
1answer
47 views

How to prevent automatic simplification in InputField?

Here is a basic example: {InputField[Dynamic[x]], Dynamic[x]} This code generates an input box with and dynamic display. What is disturbing me is that when ...
1
vote
1answer
55 views

Use StepMonitor and Dynamic to plot progress of FindMinimum

The obvious way of plotting the progress of FindMinimum fails with an error about things not being localizable: ...
1
vote
1answer
57 views

Making a movie from an interpolating function

Say I use some Mathematica procedures to find an interpolating function of two variables: $u(x,t)$. Is it possible to make a movie of this interpolating function, i.e. plot it on a certain line $x \in ...
1
vote
1answer
99 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
2answers
244 views

How to run function every x seconds?

I want to make a Graphics with a Disk whose position should update every 4 seconds. This is what I've got so far: ...
1
vote
2answers
141 views

Rate of change of dynamic variable

I have made a program that goes like this, the goal is to estimate the remaining time of a function (it is running a bunch of solveChase[] functions with different parameters which can be seen in the ...
1
vote
1answer
187 views

Create Slider to start/stop/move Point

I want to be able to start, stop, and move the dynamically moving point simultaneously in both animations. The "PlayPauseButton" in the animations only controls the given animation. Indeed, I want ...
1
vote
2answers
108 views

Using Refresh to skip expensive computations

I have several variables in my DynamicModule and some parts of my computation depend only on subset of them. I am trying to use Refresh to "cache" values but can't ...
1
vote
1answer
362 views

Initialization Cells in CDF

I am wanting to run about 15 pages of initialization cells in a CDF, but can't seem to do so. I have set the InitializationCellEvaluation to True and InitializationCellWarning to False, but it doesn't ...
1
vote
2answers
207 views

How to compare the InputField values in For loop dynamically

I am using a For loop for printing five InputFields. The loop gets its values from the variable tx. I want to compare the values ...
1
vote
1answer
28 views

How can I decouple the updating of a `LocatorPane`'s background from changes in its point variables?

I am building a Dynamic application and I'm having some trouble understanding exactly how Refresh should be implemented. The ...
1
vote
1answer
50 views

How to disable dynamic update in DynamicModule when certain variable is updated [closed]

I have a UI with DynamicModules. I have a progress bar, whenever the varibale progress updates, the ...
1
vote
1answer
62 views

Possible to dynamically redraw single plot of multiple shown together?

I am attempting to create a tool to visualize gradient, eigenvector, and eigenvalue information for a 2D surface. I want to show a contour plot of an inputted function and overlay the gradient and ...
1
vote
1answer
122 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? ...
1
vote
1answer
47 views
1
vote
1answer
58 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. ...
1
vote
1answer
122 views

Dynamically updating linked Manipulate variables

I am trying to write a simple cylindrical tank design notebook. Once the user inputs the desired capacity in gallons, it will compute the required volume (in cubic feet) and then offer sliders for ...
1
vote
2answers
70 views

Unintentional function memoisation via Dynamic

I needed to display edge labels of a graph in a way that allows the edge labels to be moved. ...
1
vote
1answer
94 views

Issue with DateListPlot and Dynamic List

Imagine that we are getting readings from an external device (ie Arduino) at a given interval of time. We'll simulate the reading as follows. ...
1
vote
1answer
154 views

Control multiple locators along a plot

Update 1 @ Michael E2, my effort - for what it is worth!: ...
1
vote
1answer
111 views

Locator with Integer value coordinates [duplicate]

I want to get the Pixel value of an image.and here is my code ...
1
vote
1answer
136 views

Whats is the real difference between this two examples of using Dynamic with Grid

the question is relatively simple I think. This is the first example of the code which works: ...
1
vote
1answer
101 views

Performing operations on function lists

I am exploring the use of Dynamic variables for the ViewPoint and ViewVertical options in a ...
1
vote
2answers
208 views

Locator following other locator in DynamicModule

I'm trying to create a dynamic environment where I specify, using two locators, the initial condition (position (x,y) and velocity angle (alpha)) of a 2D particle. To simplify, I'm assuming the ...
1
vote
1answer
62 views

Is SynchronousUpdating->False supposed to make this simple Dynamic example work?

x = 0; Dynamic[{x, Button["+1", Pause[6]; x++]}, SynchronousUpdating -> False] The documentation states that Dynamic and Manipulate will abort synchronous ...
1
vote
1answer
296 views

EventHandler {“MouseDown”, 1} with PassEventsDown -> True not working as expected

I want my EventHandler to respond only to left mouse clicks and pass the right mouse click to the built in event handler. I have tried ...
1
vote
1answer
149 views

Changing the number of locators with SetterBar

Typically when adding locators I would use a button i.e. something along the lines ...
1
vote
1answer
44 views

How can I get a manipulated parameter to show up with text next to it?

I'm trying to make a dynamic demonstration involving the $\epsilon-\delta$ proof of the limit, $$\lim_{x\to c}(2x-1)=2c-1$$ with the following code. d and ...
1
vote
1answer
66 views

Interfaces: Importing files, processing them and exporting the results

We have a simple interface with two import file buttons, one field to enter a number $x$, one field to enter a file export name, and one 'Run' button. The mathematical operation when hitting 'Run' ...
1
vote
1answer
56 views

Dynamically Update both a HorizontalGauge range and the value

I'm developing a demonstration that allows students to explore the location of a point on a number line simultaneously at various scales. I'll show a very simplified version here to get to the nub of ...
1
vote
1answer
74 views

How do I utilize the dynamic input field function in the manipulate function? Can I use this functionality to import a .xls from an URL dynamically?

Im trying to get my program to import a .xls for manipulation, I need to import the .xls at an url location dynamically, I did have this at the beginning of my code: ...
1
vote
1answer
46 views

Dynamic check box with import!

Here what i am trying to do: I have a list of the names of excel files, for example s={"red carpet.csv","red box.csv","black carpet.csv","black box.csv"}; i am ...
1
vote
1answer
111 views

User Input Through Dynamic

For my application, I am using Dynamic functionality to make a number of input fields through which a user can enter numbers. I then take these numbers and place them as the entries in a dynamic ...
1
vote
1answer
109 views

how to create Panel for Plot?

Can You advice me how to put the whole thing below into an interactive Panel, so I can values of parameters dynamically - type other values (alpha, beta, x0, y0, R, tmax) and plot updates ...
1
vote
2answers
81 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), ...
1
vote
1answer
121 views

Locators, lists of variable length, all in Manipulate

I'm trying to implement a complicated Manipulate[] interface. I'm not really interested in working code, but for those interested, I would like the program to allow you to drag around a variable ...
1
vote
1answer
38 views

Dealing with dynamic tables [closed]

Making dynamic vector variables is difficult in Mathematica. For example: X=Table[ToExpression["x" <> ToString@i], {i, 0,4}]; X[[2]] Yields x1. However, if ...
1
vote
2answers
90 views

Slider with varying scales

I am trying to implement a slider whose control range varies depending on the current value: ...
1
vote
3answers
108 views

Initial Image Size of dynamic plot

I have a dynamic plot. I want to set an initial image size and then be able to resize it by dragging with the mouse. When the image is updated, I want to maintain the "dragged" size. A naive attempt ...
1
vote
1answer
120 views

Scope of variables within a Manipulate expression [duplicate]

I have a problem in defining the local variables. I have this code: ...
1
vote
1answer
134 views

TabView switches tab number without user input in first evaluation

I've attempted to use TabView in a Manipulate to display sets of controls and alter a "display" associated with each set of ...
1
vote
1answer
324 views

dynamically set fit parameters and models with FindFit

I want to fit a gaussian profile by setting some values dynamically, but FindFit returns an error and i can't see the problem. with a given gaussian: ...
1
vote
1answer
74 views

InputField Insertion Point Movement

I am trying to make the Return Key move the insertion point to the end of the input field's text. Please see the example below for the problem I am facing. Namely, when the return key is pressed, the ...
1
vote
1answer
225 views

Manipulate with variable number of sliders plus variable number of functions

I'm trying to setup a Manipulate where I have a variable number of sliders similar to this one, where every slider controls a function. In my case, there will be an additional slider which sets the ...
1
vote
1answer
134 views

Creating a Dynamic MSSQL connection

Hello i am trying to create a notebook that automatically connects to a database on MSSQL server and would then query this to create a sort of personal report. I have connected to this database and ...
1
vote
2answers
271 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 ...
1
vote
1answer
220 views

Defining a user defined function in DynamicModule

How can I define a user defined function within DynamicModule? For example, if h[x_] := x^2 I want to find ...
1
vote
0answers
50 views

How can I perfect this game for Wolfram Demonstration publication? [closed]

When the messages change the window inactivates, and when I try to host an interactive CDF on my site it turns red and says something about numbers having to be scaled or offset. Any help? I'm ...