Questions tagged [manipulate]

Questions on the Manipulate function of Mathematica, a function that allows the interactive manipulation of certain parameters in a Mathematica expression.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Manipulate 2 circles [closed]

I want to manipulate 2 circles in order to one circle has a bigger radius than the other one and the circle with smaller radius rotates on the environment of the bigger circle and when it rotates it ...
8
votes
1answer
186 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 ...
5
votes
1answer
80 views

How to merge multiple .nb files into one notebook in mathematica

I have 10 different notebook files which I want to combine into a single .nb file. I know I can copy-paste all the cells of those 10 files to a new notebook window and then save it as nb. I can do so ...
0
votes
1answer
62 views

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

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

Dynamic updating problem

Consider the code ...
0
votes
1answer
37 views

Differentiation inside recursive expression is not compatible with Manipulate [duplicate]

Define a sequence of function recursively: f[n_, x_] := D[Exp[x] f[n - 1, x], x] f[0, x_] = 1 Then, the following Manipulate ...
0
votes
0answers
52 views

RegionPlot Calling User-Defined Function Not Working

This is following up on this post: Function not evaluating as expected I am trying to make a RegionPlot with Manipulate in which ...
5
votes
3answers
134 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 ...
1
vote
3answers
89 views

Access to variables in surrounding context from within Manipulate

Suppose you want to access a variable defined in a "surrounding" context (scoped via Begin and End) from within ...
1
vote
1answer
20 views

Manipulate: Display Slider Value in Custom Format

I am plotting two functions using 'Manipulate' and I am trying to change the way the values of certain adjustable parameters are being displayed. Here is a photo of the plot so I can refer to the ...
2
votes
1answer
54 views

External Dynamic Control with Manipulate

I want to have dynamic controls that depend on other controls. For example, the code ...
1
vote
1answer
44 views

How to repeat the same button with SetterBar?

I made a button using SetterBar. However, clicking the same button repeatedly does not apply. How to repeat the same button with SetterBar? ...
3
votes
1answer
51 views

How to use multiple Locators with different TrackingFunction in Manipulate?

I am trying to use TrackingFunction with Locator inside Manipulate, and it works fine with a ...
0
votes
1answer
24 views

symbols in a function to “take on” the values of controls with the same names in Manipulate

(** I want the symbols a1... in f1... to "take on" the values of the controls with the same names in Manipulate[Plot[f1[3,"a"],{x,1,3}],{a1,0,1},{a2,0,1},{a3,0,1}]. Here's what I'...
4
votes
1answer
100 views

extract COVID data across sub-regions of Asia and the Pacific

The following code extracts COVID data of Germany and gives the time series of confirmed cases, deaths and recoveries: ...
1
vote
0answers
46 views

StreamPlot works slow with analitical functions

I'm day to day user in Mathematica, that's I will be happy to any kind of help in code optimisation. So, I try to plot gradient for beatings between two laser modes and plot intensity, phase and phase ...
0
votes
1answer
41 views

Solving from previous results

I require in this program to use only all the value of “p” form “solution 1” in “solution 2”. Instead of copy and paste each value of “p” individually in solution 2, I am trying to write a function to ...
2
votes
1answer
45 views

Manipulate scoping issue?

I'm running Mathematica 12.2 and have encountered the following unexpected behavior with Manipulate: ...
2
votes
0answers
18 views

Manipulate and Rules inside Expressions

I'm not grokking the use of Manipulate when an expression contains Rules. This example works and throws no errors - ...
1
vote
1answer
40 views

Manipulate, IF statements, and displaying plots

When using manipulate and plotting a function within an IF statement, curly brackets appear in the panle with the displayed plot. Here is a simple version of the issue. Can someone tell how to ...
0
votes
0answers
53 views

How to convert Symbol to Number?

Question I have a variable x which is associated with the number 1 : x= 1 In the program, I faced with the data type problem ...
2
votes
2answers
89 views

Generalized Cassini oval and Manipulate

I've created a visualization of Generalized Cassini oval using Manipulate with two options: random and regular. The former generates pseudorandom points in a plane, whereas the latter generates points ...
0
votes
0answers
18 views

CDF Strange difference of line Plot display when switching from stylesheet “Normal” to “Journal Article” with “Manipulate”

A LinePlot graphic with Manipulate works well in the CDF Player if i Use the stylesheet "Normal" but is rendered quite differently when I use the stylesheet "Journal Article". Here ...
3
votes
1answer
86 views

How to Create Lissajous Figures for Driven Damped Pendulum (as an animation/with Manipulate)

I wanted to know how can I generate a Lissajous plot for the forced driven pendulums (but for one pendulum in my case): (https://demonstrations.wolfram.com/ForcedPendulumsWithDamping/). I tried using ...
0
votes
1answer
31 views

Manipulate formula and several value on the Plot

I want to show the numerical results of (universal) gravitation. However, how to give the value in the control bar? ...
1
vote
1answer
43 views

Simple code of Manipulation not working [closed]

Consider the following simple code: Manipulate[Graphics[Point[{First[phi], Last[phi]}]], {phi, {0, 0}, {2 Pi, 2 Pi}}] The expected behavior is to follow the ...
2
votes
2answers
115 views

Using Manipulate with two dimensional inputs

I want to have a matrix (say a 2x3 matrix) as an input of the Manipulate function, where each entry takes a binary value (say, "+" or "-"). The ...
0
votes
0answers
45 views

Interactive 3D Connect dots

I have some 2d slices of a 3d model - These are comprised of points and lines. I want to connect them using something like nearest neighbors, but some of the points in each 2D slice are too far apart ...
1
vote
2answers
60 views

Why can't I manipulate a whole set of code?

I'm trying to make a graph change based on k I used Manipulate on the whole code but it just gives a lot of errors ...
0
votes
1answer
45 views

It would be possible to visualize the value of the integral together with the graph (in the same Manipulate command)

f[x_, y_] := x - 3 y Manipulate[RegionPlot[ 0 <= x <= a && 0 <= y <= b (1 - (x/a)), {x, 0, a + 2}, {y, 0, b + 2}], {a, 1, 20, 1}, {b, 1, 20, 1}] ...
0
votes
1answer
24 views

Create a table of plots in manipulate with redundant variables

I'm trying to create a table of diagrams of which each shows a different variable on the x axis and fetches the remaining parameters from the enclosing scope, a Manipulate object. So I have this code ...
0
votes
1answer
25 views

Using Manipulate with a Bessel function for specific levels N of the sum

I try to plot an interactive plot where one can select the levels of N (noted nf) for a Bessel function: ...
1
vote
1answer
32 views

Creating a rule-based list of lists using Manipulate[…]

Given a list of lists: list = {{x1, x2, x3}, {y1, y2, y3}, {z1, z2, z3}}; Some self-explanatory lists which I like to create using ...
0
votes
1answer
37 views

2D Slider does not move in Manipulate [closed]

Consider the following simple code: Manipulate[Graphics[Point[{pt[[2]], -pt[[1]]}]], {pt, {0, 1}, {0, 1}}] The purpose of this code is to show (y,-x) if the slider ...
1
vote
2answers
102 views

How to create a table tracking successively changing values of controls in Manipulate[…]

Consider the following code that generates the desired output for a single vector of parameters (i.e., values of the controls). My purpose is to generate a set of ...
4
votes
2answers
176 views

Slider changes Pi to a MachinePrecision number

Problem Consider the following code: DynamicModule[{a = {0, Pi}, b = 4}, {Slider[Dynamic@b, {a}], Dynamic@b} ] I want a Slider...
1
vote
0answers
36 views

How to get a smoother color blending on a 3D sphere showing the spherical harmonics?

Here's a manipulate code to show the spherical harmonics mapped on an unit sphere: ...
0
votes
0answers
36 views

How to get rid of the white margins in picture export?

I made a manipulate box to show some spherical harmonics decomposition, and everything is working great (but it's very slow, when I add more harmonics!). Then I need to export the picture, without ...
2
votes
1answer
27 views

Manipulate with two coherent values

I want to have a Manipulate where the user can adjust two sliders with two values which are coherent depending on which value he actually knows. Look at this ...
0
votes
1answer
42 views

Manipulate and Initialization with functions and some variables

I am trying to do a manipulate with a function that depends on several variables, some of which are also functions. I can't get it to work. I have tried including an "Initialization" but it ...
1
vote
1answer
74 views

How to Add Vertical Line and Intersection in Manipulate-Plot-Row Diagram

I would like to represent i) the K^s value as a vertical line in the right diagram and ii) identify the intersection of the vertical line with the downward-sloping curve with "E" (as well as ...
4
votes
3answers
85 views

AnimationRepetitions in Manipulate

Is there any way to stop an animation in Manipulate once it gets to the end? I assumed AnimationRepetitions would work like in ListAnimate, but it still loops for me. For Comparison: ...
1
vote
1answer
67 views

Manipulate mapping on lists

For some function f, consider the following expression: ...
4
votes
2answers
161 views

Plot a curve in 2D [closed]

I have a curve $\gamma=(f(x),g(x))$ parameterized by a real parameter $x > 1$ (one can perform a variable change $y = x^{-1} \in (0, 1)$ if $x\rightarrow\infty$ is problematic), with the functions $...
2
votes
1answer
51 views

How to Have Smaller Intervals in TimeSeries

I have a wolfram demonstration project with the following code: ...
2
votes
1answer
41 views

How to Show Velocity and Time Measurements in Manipulate (Wolfram Demonstrations)

I am working with a Wolfram Demonstration that uses the Manipulate function (which I am not yet familiar with). The code is ...
1
vote
0answers
53 views

Plotting from matrix element

I am struggling with a function creating a manipulate of a plot, where the input functions are in form of matrix element. First I define the matrix: ...
12
votes
2answers
212 views

Manipulate for playing along with “Deal or No Deal?”

I started building this Manipulate and am certain I can do so on my own, but thought it was fun enough that others might want to try. (If this is some abuse of the ...
1
vote
1answer
30 views

Mathematica Manipulate[] for plotting a function of several variables

This is a sample snippet from Mathematica documentation for plotting Bessel for various n: ...
2
votes
3answers
83 views

Manipulate lists without curly braces

I'm trying to use Manipulate to specify a list of numbers on the user side, say {50,60,70,80,90,95,99}, but I don't want the curly braces to need to be in the text entry box. i.e. ...

1
2 3 4 5
37