# Questions tagged [dynamic]

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

1,470 questions
Filter by
Sorted by
Tagged with
29 views

### Apply options to many controllers

I have 5-7 controllers in Manipulation. Names and ranges are different, but some options like ...
• 1,846
95 views

### MouseDown event

Consider this code: ...
58 views

### How to prevent ListPicker from highlighting all items initially in WL?

I'm using the ListPicker function within an Input dialog in Wolfram Language to allow users to select one item of a list. ...
80 views

### EmitSound Problem

I want to emit several sounds with an indication of each name according to their duration times. My code is below. But sounds and updating information in a grid don't synchronize. I'm looking for an ...
• 1,199
140 views

### Speed up Manipulate when including several static 3d plots in Show

I made a dynamic vector visualization ...
1 vote
161 views

### Draw bifurcation diagram for Van der Pol oscillator

I'm trying to study graphically the dynamics of the Van der Pol oscillator: $\dot x(t) = -\frac{x(t)^3}{3}+x(t)+y(t)$ $\dot y(t) = \epsilon(\mu-x(t))$ I've managed to obtained the phase diagram and ...
• 13
35 views

### Can one force Print[] statements within a Dynamic[] to appear in the Notebook? If so, should one ever do that?

For a simple demostration of the behavior, note that the print statements in this expression appear in the Messages window: ...
141 views

### Read data from dynamic grid (or tool for manual creation of raster)

I made a tool for manual creation of raster image. First cell code (after executing click the grid to paint custom image): ...
• 20.1k
64 views

### Checkbox alternating between first and third state of appearance

When clicking on the first checkbox its appearance alternate between first and second states. When clicking on any of the three checkboxes in the row they alternate between three states of appearance. ...
• 20.1k
1 vote
46 views

### Using NonlinearModelFit output in multiple Plot instances within DynamicModule

I'm creating a script for interactive model fitting where the user selects a 'window' of the data to exclude from the fitting. I can come up with a MWE like the following: ...
112 views

### Phase portait for orbits of maps in 1D

I am looking for a way to generate the phase portrait on the real line of the orbits of maps, such as $$f(x)=-x$$ which orbit has the phase portrait : Then another example: $$g(x)=2x$$ has an orbit ...
• 605
159 views

### Regarding the interactive operation of a four-bar linkage mechanism

I have a four-bar linkage mechanism, where when the left locator is moved, the right locator moves accordingly, and when the right locator is moved, the left locator moves accordingly. I have ...
• 874
545 views

### Basins of attraction using Newton-Raphson method for nonlinear system

I am trying to construct basins of attraction using the newton's method for the system of two equations whose roots are real. I need to develop a code to get basin of attraction. Unfortunately, my ...
• 119
150 views

### Finite Time Lyapunov Spectrum (FTLS)

The stadium billiard is a $2D$ chaotic system. We know this by studying its specular reflection patterns and Poincare section (or Poincaré-Birkhoff coordinates (PBC)). However, both methods are ...
• 2,644
273 views

### Recording timing of keystrokes

I'd like to make a dynamic module where a user types in text and Mathematica records the typed text and time at which each key is pressed. The time could be relative to the start or relative to the ...
• 1,919
103 views

### Command to press a button

Under normal circumstances, giving a command to press the Button is stupid. Because we only need to execute the button action of that ...
• 4,315
42 views

### Button with a certain built-in function makes error [duplicate]

Note that if I execute NotebookSave[InputNotebook[], SystemDialogInput["FileSave", "C:\\myfile.nb"]] will popup ...
• 4,315
52 views

### Simultaneously updating functions dependent on each other

I am new to using Mathematica and am grasping for understanding of structures equivalent to looping constructs in other languages. Suppose I have 2 functions that depend upon each other and I need to ...
1 vote
57 views

### Initialization Cell evaluation warning : turned off but still [closed]

I have a two .nb files, MyStart.nb and MyDoing.nb in c:\testfolder. My intention is that if ...
• 4,315
56 views

### Run something as soon as the notebook is open

I want to create a .nb file, say DoSomethingAsSoonAsOpen.nb, such that in any case as soon as DoSomethingAsSoonAsOpen.nb file is ...
• 4,315
410 views

### Rotation Slider Control

Mathematica seems to support no "rotation slider" Control which might be used, for instance, in setting an angular direction ($0 \leq \theta \leq 2 \pi$) on a plane. I couldn't find one in ...
• 41.8k
1 vote
36 views

### Interactive input of integer-coordinate 2D points

I'd like code to allow interactive input of a chain of 2D points, which are saved in some global variable. And in addition, I would like to constrain the coordinates to be integers. The code below is ...
• 4,751
1 vote
75 views

### Function with Dynamic parameter gives an empty plot

I have a function which depends on three parameters, and I would like to see how it changes as I vary those. I created three sliders, used Dynamic and what I obtain ...
• 13
135 views

### Speeding a Manipulate illustrating convolution

I'd like to illustrate the mathematical process of convolution ($f(x) \star g(x)$) with an interactive Manipulate, but the evaluation is far too slow for a class ...
• 41.8k
26 views

### ChannelObject::connfail Error

My Mathematica keeps deadlock in DynamicEvaluation and throws the following error upon Abort. How to stop this behavior? ...
• 2,297
1 vote
73 views

### Selecting regions from the screen to capture dynamically

I know that by using CurrentScreenImage with some coordinates that I can capture regions of my screen. I would like to be able to capture a rectangular region of my ...
• 1,844
73 views

### Getting formula & graph from locatable points

My goal is to, firstly, get formula-I think Findformula function might be used- from locatable points(for example from 10 locatable points as below),and secondly,superimpose the graph of formula over ...
• 648
1 vote
120 views

### Make Manipulate work despite Clear["Global*"]

What is the correct way to stop all my Manipulate cells from breaking every time I issue ClearAll["Global*"] command? ...
• 7,875
174 views

### How to maintain the input form of InputField?

I created a Manipulate with InputField: ...
• 1,748
108 views

### How to most responsively manipulate time intervals in ParametricPlot?

I often met with the case where I want to show the past trajectory of a object. A way of demonstrating this is to plot the trajectory using ParametricPlot, and then ...
• 9,630
1 vote
37 views

### Help fixing dynamic graphics with multiple features

I'm trying to create a graph drawing widget, here are its basics that just allow you to create and drag vertices: ...
• 7,921
78 views

### Locating points by selecting points

My goal is to locate points without using slide bars then average point is dynamically plotted. Could I select and locate a point directly without using the slider bar?(I could locate points using ...
• 648
214 views

### Wolfram Mathematica and Arduino serial data capture not working Dynamic stream

This post is a continuation and modified version of an earlier post from few years ago. Please help with the Dynamic function capturing data from a Serial stream from Arduino. I am not having luck ...
120 views

### Correctly localize variables in Manipulate

I’m doing a little project for Wolfram Demonstration. When I create snapshots, i.e. paste several times Output cell of Manipulate, all of them updates simultaneously, if any control is changed. I ...
• 1,846
188 views

### How to launch a Manipulate (or a function that uses Manipulate) via a Button

(Mathematica v13.3) This seems to do nothing when you click the resulting Button: Button["Launch", Manipulate[pt, {pt, {-1, -1}, {1, 1}}]] Setting ...
1 vote
100 views

### Unwanted reevaluation in Manipulate with RandomPointConfiguration

Here is a simple illustration of a problem I am encountering. I want to use RandomPointConfiguration inside Manipulate, but it ...
• 548
137 views

### How to set the width of InputField in tables with dynamical content?

I have written the following code to generate the table that is shown below. ...
• 612
88 views

### Using Dynamic string output inside Block

Inside a Block, I have (among other things) a string output that is updated during an internal for loop in the following (schematic) way: ...
1 vote
148 views

### Combine Dynamic[] and Manipulate[]

I'd like combine Dynamic and Manipulate, cause Manipulate required for Wolfram ...
• 1,846
104 views

### Why do I need to use Dynamic in order for Plot to work?

I have a problem. I'm on 13.3. I have setup an expression in the following manner: F /: f[F, {x_, y_}] := x y (* x*y is an example of a specific functional form *) ...
• 342
1 vote
146 views

### Multiparameter GUI with button-driven update

I would like to be able to evaluate a function based on multiple Slider values by pushing a Button that creates the function, ...
• 13.8k
107 views

### Need an equation for modeling Tytler's Cycle

In all cultures over all time there appears, in different languages for different countries, the maxim "Shirtsleeves to shirtsleeves in three generations." This is a function with three ...
• 940
83 views

### Problem with Association in DynamicModule

How can I understand the success of the first append but the failure of the second, here? (Mma 13.3.) Is there a ready work around? ...
• 13.8k
93 views

### Create vanishing button to transition between images

I have multiple "slides" that I would like to transition between, by clicking a specific area on each slide. eg: ...
• 8,778
40 views

### Dynamic of the content of a certain cell (using NotebookRead)

Initial state : ...
• 4,315
97 views

### Interactive control panel using dynamic is surprisingly slow

I am hoping to create a user interface for performing gaussian fits on two dimensional data. I made a basic grid of various controls and labels. The tool works, but it's much slower than I anticipated,...
133 views

### Real-time function graph display

I would like to see how the graph of the function en[B, i, j, k, p] changes depending on i, j...
• 1,883
1 vote
I'd like a simple interface where the user can input (by text) a function $f(x)$, and then the function, its even part, and its odd part are all plotted on the same axes. I'd also like PlotLegend to ...