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
0answers
22 views

Pokemon ELO rating with wolframscript

I would like to implement a Pokemon ELO system that my friends that don't have Mathematica installed could use as well via Wolframscript. The application would work as follows: You run a script ./...
13
votes
1answer
171 views

How to create a general AttachedCell toolbar?

For example, when an image is displayed in the frontend, the image suggestion toolbar, which is an AttachedCell, pops up: It can can be found here, among other ...
4
votes
1answer
178 views

What's the correct action for pressing a key?

Consider the following code: ...
3
votes
1answer
52 views

How to properly initialize a list variable that is dynamically updated?

The below example works to initialize the Gauge, but it does not initialize sf until we interact with the gauge. ...
1
vote
0answers
17 views

How can I combine Dynamic plots saved in named variables inside a DynamicModule?

I am creating a few separate plots that I want to be updated dynamically. I want to combine the plots so they are a single plot. Normally, I would use Show for this....
0
votes
1answer
98 views

Matching a Dynamic Argument Pattern

times is a list of times i.e. matching {{hour_, min_, sec_Real}..}. I want to call ...
1
vote
1answer
68 views

Rotate the label when rotating the output image with graphics3D

I am interested in drawing a labelled dashed line through points p1 and p2 with Graphics3D. ...
13
votes
3answers
416 views

Animated bar chart race, a popular data visualization

Recently I see more and more data-viz called "Animated bar chart race". Some random examples, and note, how smoothly and organically everything changes in these videos.: https://flourish....
1
vote
2answers
79 views

How to make an interactive calculator for any mathematical relation? [closed]

I am wondering if there is a way to make a calculator for any relation that is interactive. First, I choose a relation with some variables in it. The user will input a value for all of the variables ...
1
vote
0answers
46 views

Help me understand a part of this code (using Clock) [closed]

I'm a begginer in Mathematica and I need help understanding a part of some code that I took and adapt from another question in this forum. The code is to animate one by one a list of points (with x,y ...
3
votes
2answers
131 views

Making a list of variables

Consider the following code, which give a Manipulate object that returns the "total" of a certain variable var 1 ...
0
votes
1answer
126 views

Equation of motion through the Lagrangian with Lagrange multipliers

I ask for advice, I'm a little confused. I have such a Lagrangian. $L=\frac{1}{2}m(\dot{x}^2+\dot{y}^2)-\lambda(2x^2+3y^2-1^2)$ Here $\lambda(2x^2+3y^2-1^2)$ is the constraint on the phase variables. ...
3
votes
2answers
74 views

How do you make two interactive sliders dependent on eachother?

I have this code. Definition of q is: ...
2
votes
0answers
80 views

Use the mouse to pinch the plasticine

Very roughly speaking, a topological space is a geometric object, and the homeomorphism is a continuous stretching and bending of the object into a new shape. (https://en.wikipedia.org/wiki/...
3
votes
2answers
83 views

IntervalSlider inside Manipulate

I try to implement a Manipulate control to draw a partial circle. For now, I have a ParametricPlot with fixed lower and upper ...
2
votes
0answers
39 views

Saving Dynamic Output when Closing [closed]

I am using Dynamic to create a graph that continuously updates during a simulation. This allows my students to visually (1) confirm that the simulation is working and (2) to judge when the simulation ...
1
vote
0answers
39 views

How to export current state of a dynamic variable to Excel

I have a table with column headers and data. (The original table is much longer than the example is use to explain my problem here). ...
1
vote
1answer
66 views

Dynamic influenced by a countdown Clock ignores actions in second argument

I stripped a Dynamic down to its bare essentials. Dynamic doesn't execute any of the functions asked for in second argument. ...
0
votes
0answers
48 views

Abort dynamics error

I am encountering a problem when I use the function Manipulate. Even when I run the simple code f[a_,x_]:=a*x Manipulate[Plot[f[a,x],{x,-1,1}],{a,1,2}] I obtain I ...
4
votes
1answer
96 views

Disabling an individual button in a SetterBar

I'm trying to create a set of SetterBar within my DynamicModule, but I want to have it so that an individual button gets ...
1
vote
1answer
60 views

Define variables dynamically to compute a function

Let's say I have defined a function $W(p, q)$, where $p$ and $q$ are integers between (and including) $0$ and $2$ and the function takes me to a real number. Upon an input $n$, where $n$ is a positive ...
2
votes
2answers
84 views

DynamicModule & Manipulate Plot

I tried to write a convenience wrapper around Manipulate for easier plotting. However I failed already at the very first step. Consider the following example: ...
4
votes
2answers
72 views

Why does Manipulate update without change of TrackedSymbols?

Below you find a very minimal version of a code, where the Manipulate keeps updating (run is constantly printed) despite the Tracked symbol not being changed. Funny enough, this only happens if d1 and ...
0
votes
0answers
41 views

How to create an Interactive Solver using either Dynamic, Dynamic Module, Manipulate, Form Page, and Form Function?

I am working on creating interactive solvers for laws in physics where first select a variable to solve for such as displacement/length/position, density, mass, torque and electricity and then enter ...
0
votes
1answer
39 views
1
vote
1answer
115 views

My dynamic button evaluates as soon as it's created. How do I stop this behavior?

I think I finally hit on the holy grail of buttons. With a very small footprint I coded a dynamic AutoSave button whose duration and frequency can be set all the while showing very useful dynamic real ...
0
votes
1answer
66 views

Create an interactive list in a Wolfram notebook that choosing its items make a change in calculations

I have 3 variables. I want to create an interactive list of items in a Wolfram notebook that if I choose each item, functions that are written by myself change the value of the variables and ...
0
votes
0answers
84 views

Automatically redraw Plot once Locator has changed

I have a Dynamic inside LocatorPane which provides a value to be used in several other places. The idea is to have a Plot that ...
1
vote
0answers
75 views

Linearization of the ODE system: Problems

I have summarized the issues covered in the topics: Linearization of ODE without an equilibrium I ask for help with commands TransferFunctionModel + StateSpaceModel Plot3D + WhenEvent + NDSolve ...
3
votes
1answer
56 views

Please help with dynamic autosave button that only halfway works?

Ive been working on this from morning to midnight (primarily studying the docs that never seem to have useful examples) only to to make very little ground. I am trying to code a dynamic button that ...
0
votes
1answer
62 views

LocatorPane - restrict to circle

I have cobbled together a solution that does exactly what I need, but I don't fully understand how it works: ...
1
vote
1answer
56 views

I ask for help with commands TransferFunctionModel + StateSpaceModel

Given system of ODE: $\begin{cases} \dot{x}=G+u_1 \\ \dot{z}=-z+\frac{df}{dt} \\ \dot{G}=-G+z \cdot u_2 \end{cases}$ where $f=-x^2$, $u_1=\frac{d}{dt}(\alpha \sin(\omega \cdot t))$ and $u_2=\alpha \...
3
votes
2answers
148 views

Linearization of ODE without an equilibrium

Given: $\begin{cases} \dot{x}=-x^2+\frac{1}{y+1}+1 \\ \dot{y}=1 \end{cases}$ I am trying to linearize the system in the classical way, using the Jacobi matrix. ...
6
votes
1answer
145 views

Plot3D + WhenEvent + NDSolve

Given: $\begin{cases} \dot{x}=-x-By^2 \\ \dot{y}=Ax-y^3 \end{cases}$ where $x,y$ - variables; $A=[2;4],B=[0.2;2]$ - positive parameters; My task is to find the time $t_n$ of the first intersection of ...
8
votes
2answers
228 views

How to stop this computation?

I want to implement start-stop dynamics within a Manipulate environment so that, when I click a "Start" button, the simulation starts, and when I click ...
0
votes
0answers
38 views

Optimization when actively working with the NDSolve command

Lagrangian of three-mass system with Mathematica Based on the Lagrangian of a mechanical system, we can obtain a system of equations of motion. These equations can be explored numerically using the ...
3
votes
1answer
80 views

How to get StreamPlots where the density of arrows adapted (discretization ) adapts to the presence of funnels, saddle-points, etc?

I want to draw a phase portrait where the density of arrows adapted (discretization ) adapts to the presence of funnels, saddle points, and other phenomena. For example, in the code attached, the aim ...
1
vote
1answer
56 views

Move dynamic plot inside DynamicModule

I am trying to understand Dynamic a bit better for some classroom presentations, so I tried to make a dynamic list plot. As far as I can tell, this still requires ...
8
votes
1answer
199 views

How does Manipulate work "under the hood", i.e. gets converted into DynamicModule and Dynamic?

The Mathematica documentation says in Introduction to Dynamic under "Dynamic and Other Functions": Manipulate in fact produces a combination of ...
0
votes
1answer
77 views

How to have multiple ways of specifying the Control variable in Manipulate?

Consider the following as an example: ...
1
vote
1answer
65 views

Dynamic updating problem

Consider the code ...
1
vote
0answers
36 views

Grid's automatic resizing

Imagine I have a dynamic opener that changes the number of rows. For example, ...
3
votes
0answers
83 views

Button changes in 12.3 [closed]

In the new 12.3 version I noticed a change in how buttons react to the Background option. For instance, take ...
5
votes
3answers
147 views

Manipulate delimiter between control and content

Is it possible to stylize Manipulate so that there is a line separating the control and the content? The code ...
2
votes
1answer
66 views

External Dynamic Control with Manipulate

I want to have dynamic controls that depend on other controls. For example, the code ...
4
votes
2answers
181 views

Implementation of Bean machine (Galton board)

Bean machine is a triangular array of pegs, Balls are dropped onto the top peg and then bounce their way down to the bottom where they are collected in little bins.Each time a ball hits one of the ...
0
votes
1answer
72 views

How can I adjust the size of this parametric plot output? [closed]

I have a problem with the dimensions of the output of a ParametricPlot. What I'm trying to do is solve a differential equation using ...
0
votes
0answers
57 views

Output is derivative of state variable

Given simple system of ODE. \begin{cases} \dot{x_1}=-x_1+u \\ \dot{x_2}=-x_2-x_1 \end{cases} As an output, I want to use $y=\dot{x_1}$. But when I use the ...
1
vote
1answer
90 views

Asymptotic Output Tracking: Compensator properties

Asymptotic Output Tracking: Code Issues The question is, rather, of a theoretical nature (practical applications can be viewed in the topic at the link). Asymptotic Output Tracking is said to be based ...
4
votes
3answers
248 views

"Spaghetti"-solutions for ODE nonautonomous system and reduced vector field

Projections of the 3-dimensional phase-space of a non-autonomous ODE system Multidimensional obstacle avoidance in ODE (Visualization) Given simple system of ODE: $\begin{cases} \dot{x}=g \\ \dot{o}=2 ...

1
2 3 4 5
27