Skip to main content

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
0 votes
0 answers
29 views

Apply options to many controllers

I have 5-7 controllers in Manipulation. Names and ranges are different, but some options like ...
lesobrod's user avatar
  • 1,846
3 votes
1 answer
95 views

MouseDown event

Consider this code: ...
user16266968's user avatar
3 votes
1 answer
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. ...
E. Chan-López's user avatar
0 votes
0 answers
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 ...
qwerty's user avatar
  • 1,199
2 votes
3 answers
140 views

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

I made a dynamic vector visualization ...
Alice Schwarze's user avatar
1 vote
1 answer
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 ...
Gabri_BH's user avatar
0 votes
0 answers
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: ...
Tapiocaweasel's user avatar
4 votes
2 answers
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): ...
azerbajdzan's user avatar
  • 20.1k
3 votes
1 answer
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. ...
azerbajdzan's user avatar
  • 20.1k
1 vote
1 answer
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: ...
BoseEinsteinCondensator's user avatar
3 votes
1 answer
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 ...
Superunknown's user avatar
2 votes
1 answer
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 ...
miss's user avatar
  • 874
8 votes
3 answers
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 ...
onk's user avatar
  • 119
4 votes
0 answers
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 ...
user444's user avatar
  • 2,644
4 votes
1 answer
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 ...
GregH's user avatar
  • 1,919
0 votes
1 answer
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 ...
imida k's user avatar
  • 4,315
0 votes
0 answers
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 ...
imida k's user avatar
  • 4,315
0 votes
0 answers
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 ...
Enokidata's user avatar
1 vote
0 answers
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 ...
imida k's user avatar
  • 4,315
0 votes
0 answers
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 ...
imida k's user avatar
  • 4,315
5 votes
1 answer
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 ...
David G. Stork's user avatar
1 vote
1 answer
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 ...
Joseph O'Rourke's user avatar
1 vote
1 answer
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 ...
gwaedin's user avatar
  • 13
2 votes
1 answer
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 ...
David G. Stork's user avatar
0 votes
0 answers
26 views

ChannelObject::connfail Error

My Mathematica keeps deadlock in DynamicEvaluation and throws the following error upon Abort. How to stop this behavior? ...
Everett You's user avatar
  • 2,297
1 vote
1 answer
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 ...
Diffycue's user avatar
  • 1,844
2 votes
1 answer
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 ...
Soon's user avatar
  • 648
1 vote
1 answer
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? ...
Yaroslav Bulatov's user avatar
2 votes
3 answers
174 views

How to maintain the input form of InputField?

I created a Manipulate with InputField: ...
Milk's user avatar
  • 1,748
7 votes
2 answers
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 ...
Wjx's user avatar
  • 9,630
1 vote
0 answers
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: ...
swish's user avatar
  • 7,921
3 votes
1 answer
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 ...
Soon's user avatar
  • 648
2 votes
1 answer
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 ...
Jose Enrique Calderon's user avatar
3 votes
2 answers
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 ...
lesobrod's user avatar
  • 1,846
3 votes
3 answers
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 ...
Webel IT Australia - upvoter's user avatar
1 vote
1 answer
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 ...
Russ Lyons's user avatar
5 votes
2 answers
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. ...
JuanC97's user avatar
  • 612
0 votes
2 answers
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: ...
michelangelov's user avatar
1 vote
3 answers
148 views

Combine Dynamic[] and Manipulate[]

I'd like combine Dynamic and Manipulate, cause Manipulate required for Wolfram ...
lesobrod's user avatar
  • 1,846
3 votes
1 answer
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 *) ...
joka's user avatar
  • 342
1 vote
2 answers
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, ...
Alan's user avatar
  • 13.8k
2 votes
1 answer
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 ...
Rogo's user avatar
  • 940
3 votes
2 answers
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? ...
Alan's user avatar
  • 13.8k
3 votes
2 answers
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: ...
martin's user avatar
  • 8,778
0 votes
0 answers
40 views

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

Initial state : ...
imida k's user avatar
  • 4,315
0 votes
0 answers
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,...
Tapiocaweasel's user avatar
0 votes
2 answers
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...
Mam Mam's user avatar
  • 1,883
1 vote
1 answer
83 views

Dynamic text input of equation for graphing

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 ...
David G. Stork's user avatar
1 vote
1 answer
46 views

Setting FrontEnd`$ControlActive in EventHandler

Is it possible to emulate the behaviour of ControlActive[] for an ordinary Control[] when implemented by an ...
David Eph's user avatar
1 vote
0 answers
80 views

Plotting equipotentials line of a Julia set in Mathematica

I need to plot the equipotential lines of the Julia sets of the polynomial $f(x)=x^2-1$ by using Mathematica, but I don't have a good background in programming. Given $f$, with equipotential lines I ...
cartesio's user avatar
  • 111

1
2 3 4 5
30