Questions tagged [dynamic]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
34 views

Natural decay in the rate of Animation

I am trying to introduce a decay into the rate of animation of a graphics object by setting the AnimationRate in the Animator to a dynamic variable which is itself continually updated through a self-...
3
votes
1answer
79 views

Best way to make live animations

I often find myself in a situation where I want to see something animated 'live'. With this I mean I have some data, a function to update that data let's call it ...
1
vote
1answer
56 views

Accommodating local variables within Dynamic

I would like to use a local variable within Dynamic, but that may not work, and the front end will show the local variable in red to give a warning. However, if I ...
1
vote
1answer
52 views

How to use Dynamic with ArrayPlot or similar inside Manipulate?

I have some complicated data to calculate and display. I want to change the display inside Manipulate with a control variable and use ...
0
votes
1answer
59 views

Cannot program NDSolve for two-variable system of ODE [closed]

Please help program a system of 2 ODEs: \begin{cases} \frac{dx}{dt}+\frac{dy}{dt}=\frac{df}{d{(x+y)}} \\ \frac{d}{dt}(\frac{df}{d{(x+y)}})+\frac{df}{d{(x+y)}}=0 \end{cases} where $f=-(x+y)^2$ There is ...
1
vote
0answers
33 views

How to set focus in a dynamic graphic with InputFields

Happy New Year! I am trying to set cursor focus in this timetable application. When the minutes are all entered the activity blocks resize. Tabbing out of the minutes field moves focus to the ...
2
votes
1answer
31 views

Accessing InputFields within dynamic graphics without multiple clicks

I'm trying to write a timetable application. (The activity blocks are to be resizable and reorderable.) A problem I have run into, which might be a showstopper for this approach, is that entering ...
3
votes
2answers
56 views

How to separate the performance of controls in Manipulate?

I would like to build a Manipulate object, for which some variables will be related to corresponding controls. For example, in this simple Manipulate object, if I change any slider control, both ...
2
votes
1answer
32 views

Manipulate and DynamicImage

I would like to use DynamicImage within Manipulate, but have been unable to get the contents of DynamicImage to update. This basic example demonstrated the problem: ...
1
vote
1answer
34 views

How to obtain desirable performance of dynamic variable?

I need to create the code that generates a sample based on an adjustable parameter and, later, interactively calculates statistics or builds a plot for the generated sample. Let's insert a slider <...
1
vote
2answers
87 views

Confused by result of NDSolve for Second-Order nonlinear ODE

It is impossible to solve numerically a nonlinear second-order equation, although the initial conditions are given. ...
7
votes
2answers
293 views

How do I place the Clock arrows inside this clock face?

I am trying to program a clock, I have the face I want and the hands but I can not seem to put them together so they work..... ...
2
votes
1answer
37 views

How to use controls for creating static variables

I try to create a static variable initialized by some control. Let's create PopupMenu control ...
1
vote
1answer
43 views

Solution of a system of nonlinear ODE in the form of a state space with nonzero initial conditions

I have a system of differential equations like this: $\begin{cases} \frac{dx}{dt} = hpf_1 \cdot \alpha \cdot sin(\omega t) + \frac{d}{dt}(\alpha \cdot sin(\omega t)) \\ \frac{dhpf_1}{dt} + hpf_1 = \...
2
votes
0answers
32 views

Need to determine turn in Connect Four based on mouse clicks (Mathematica)

I am making a connect four game and I need to figure out which graphic to use (red or black) by how many times the mouse has been clicked. So I need a counter for mouse clicks. That way I can make an ...
4
votes
1answer
51 views

Invert Selection checkbox

I want to use a checkbox to invert the current checkboxbar selection, the code now basically works, but I hope that when the checkboxbar is all selected or not, the status of the first checkbox will ...
4
votes
2answers
144 views

I would like to monitor a file sieve.txt and take its contents in dynamic

I would like to monitor a file sieve.txt and take its contents in dynamic. :I did this but Dynamic does not work in this case: ...
3
votes
1answer
90 views

How to realize Locator3D effect?

I want to use the locator in MMA to reproduce the following animation: But MMA's function Locator doesn't support 3D coordinates. What can I do to reproduce this ...
0
votes
0answers
22 views

If statement in dynamic cluster query

I use a High-Performance Cluster for some of my work. I can dynamically see the state of the work but I couldn't use the If statement in the cluster query. I want to hear a sound when my work finishes....
0
votes
0answers
21 views

Function not evaluated in CloudDeploy [duplicate]

I am trying to create a LocatorPane on the Wolfram cloud, but am hitting a snag. The LocatorPane needs a couple of helper functions. When run locally, everything works fine. When I deploy it to the ...
0
votes
1answer
51 views

TogglerBar linked to Buttons that override input list

This question is about extending the solution provided here. How do I allow the user to change x outside the TogglerGrid function so that the TogglerBar shows the new values of x? I've set it up ...
13
votes
0answers
466 views

Mathematica runs on iPhone or iPad locally!

Try coding on iPad has fun, I downloaded the free app Wolfram Player in App Store and found it can interact with Wolfram notebooks ...
1
vote
1answer
56 views

Using Dynamic with PlotRange inside Manipulate

I am using Manipulate to plot a function that takes a fair amount of time to be plotted. Once it is done I would like to change the y-range where it is plotted. To avoid that the function is evaluated ...
2
votes
1answer
69 views

Parts[] of DynamicModule output

I gave a partial answer to a question, Can Manipulate controls be generated programmatically based on a (non-manipulated) variable?, which has led me to questions of my own. Background: The following ...
10
votes
2answers
324 views

Dynamically drag graph vertices

Is it possible to make a dynamic graph with an ability to drag vertices? In other words let vertices behave like Locators and change its ...
10
votes
1answer
188 views

Is there a way to disable the “Formatting Notebook Contents” panel?

Mathematica loves telling the user that it is "Formatting Notebook Contents" during DataModeler model searches. The problem is that, even though Mathematica is in the background, that panel ...
10
votes
3answers
597 views

Drawing a circle subdivided into arcs of different colors

I would like to draw a circle and have different parts in different colors. Which part has which color should be changeable with sliders. I've managed to do two colors, but would like to have three or ...
4
votes
3answers
186 views

Computing and dynamically displaying the intersections of three circles

I don't understand why I get the following output: when in fact I was expecting to get $Failed, 1 or ...
1
vote
0answers
47 views

control Dynamic speed

Some animations are more suitable to use Dynamic instead of Animate, the following code is minimized. The refresh rate is a ...
3
votes
1answer
59 views

Problem reusing Dynamic variables illustrated by synchronized Panes code

Suppose I have several plots that represent different views of a common set of time sequence data but each Plot contains too much data (all of which I want ...
3
votes
0answers
62 views

a “Calculate” button for Manipulate with Locator points

Looking for a methodology where the user can move the points of a Locator and then click a button to ask for calculations to proceed. The motivation for this is that the calculations of the full ...
3
votes
1answer
116 views

Removing locators breaks labels

I have some locators in a LocatorPane and want to let users remove them. Unfortunately, it seems doing this conflicts with the ...
3
votes
1answer
45 views

How to make a LocatorPane Appearance option dynamic?

I have a DynamicModule that contains a LocatorPane. The number of locators can be changed. The locators are labelled with a number. When the number of locators are changed the label numbers should ...
1
vote
1answer
47 views

How to make a function plot dynamic in a combined graphics?

Here is the code: Dynamic@Show[{Graphics[{LightGray, Rectangle[{0, -1}, {Pi, 1}]}], Plot[Sin[a x], {x, 0, Pi}]}] Slider[Dynamic[a]] The Slider controls the ...
1
vote
0answers
66 views

Problem with the analytical study of transient processes in nonlinear systems with linear dynamic links

I ask for advice and help. I am having difficulties of this nature. There is a nonlinear system of the following type: I need to analyze analytically the transient process in such a system. The ...
6
votes
1answer
105 views

How can I make a dataset with one element display with a header row?

I'm building a virtual lab exercise in Mathematica. As part of it, I'm using Dynamic to show the students' lab dataset that they store in memory using a ...
3
votes
0answers
59 views

What's the best way to dynamically update variables that aren't displayed on screen?

One property of Dynamic is that its result has to be displayed and manipulated onscreen for the dynamic updating to take place. What's the best way to dynamically ...
1
vote
0answers
23 views

TogglerBar Text Cuting

Does anyone know how to prevent the text from cutting when using a Togglerbar? I would like the text to wrap instead. For instance: ...
3
votes
0answers
54 views

Detect the current PerformanceGoal in EdgeShapeFunction, as a condition for using DynamicLocation

The use of DynamicLocation is described in answers to the following questions: DynamicLocation usage Framework behind Graph plots. DynamicNamespace and friends How ...
2
votes
2answers
62 views

Dynamically set several values in a list at once

I am attempting to create a threshold which can be manually adjusted when necessary, but otherwise is assumed to be constant. This corresponds to a list of values, wherein all later values are set ...
3
votes
0answers
106 views

How to make C60 football model

I saw a beautiful C60 football model here. I want to reproduce this animation with MMA, but I don't know how to do it. Can you give me some help?
0
votes
0answers
24 views

Initialize Global variables with manipulate

I would like to use the result from a dynamic matrix for calculation, but I don't know how to return a global variable from manipulate. Please help me, I'm new to mathematica. Any suggestion would be ...
0
votes
0answers
29 views

Create a dynamic growing list in Manipulate from data obtained by URLExcecute of API

I have a test API which sends me data from one or more tags in a SCADA/Historian system. For one tag, I refresh the API call every 5 seconds and generate a simple ListPlot[] of this single current ...
0
votes
0answers
77 views

How to solve Partial differential equation (PDE) with delay!

I just have one question please, I searched on Mathematica documents concerning partial differential equations with delay, all I had found is ordinary differential equations(EDO), that's means ...
1
vote
0answers
61 views

TableVIew and Dynamic

Considering using TableView to present data and allowing the user make small adjustments to the values. Would like some help with Dynamic and TableView. Below is a basic example. In the more ...
2
votes
1answer
48 views

Can I make the locators in a locator pane move over the whole pane?

I'm trying use LocatorPane to produce locators that can move anywhere in the entire row of text I am displaying and not just in one of the rectangles, which is what ...
1
vote
1answer
47 views

Converting Dynamic Variable to String for use in an API

I am trying to create a code that concatenates a series of dynamic selections (year, month, day) to a string for creating a dynamic date string for use in an API which is to be included in a ...
0
votes
1answer
66 views

Use `Dynamic[]` to plot dynamically solve equation and dynamically display calculated value

Here is my code and it works well: ...
4
votes
1answer
58 views

Does MousePosition[“Graphics”] give coordinates in outermost Graphics?

It seems that this issue has been raised a few times, but what exactly does MousePosition["Graphics"] answer? This code ...
2
votes
1answer
94 views

Dynamic Update for 2D Random Walk

I have code for a random walk ...

1
2 3 4 5
26