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
1
vote
0answers
57 views

Manipulate updates due to variable changes outside manipulate: can this be stopped?

I have created a large notebook where i have two or more manipulates whose execution is supposed to wait till I click an update button. The button operates a dummy update variable which is tracked in ...
0
votes
1answer
78 views

How to manipulate a system of equations

I have the following Manipulate[] working just fine. ...
2
votes
1answer
84 views

Question about Working with Lists / Tables

I have a data point set embedded in a manipulate. dtpts1a={{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y}, and so on and so forth, continuing} How do I alter, how do I change the magnitude of each ...
1
vote
1answer
60 views

Changing pane background color in Animate

In the code ...
1
vote
1answer
49 views

Table does not give out any output while Animate or Manipulate work [closed]

I was playing with this program and I noticed that I can use Manipulate or Animate, but Table...
1
vote
1answer
83 views

Why doesn't Manipulate work? [duplicate]

...
1
vote
0answers
29 views

How to include a meter in Manipulate that shows a value calculated from the manipulate dynamic variable?

I'm trying to make a visualization of grid (representing magnetic states) and I want to include a meter that shows a variable calculated from the manipulate index (of the form ...
2
votes
1answer
76 views

Plotting eigenfunctions as functions of parameters in the hamiltonian

I'm finding eigenfunctions using NDEigensystem of various hamiltonians. For example, the hamiltonian with Shcrödinger's equation: $$ H u(x)=-\hbar^2 u''(x) + A x^2 u(x). $$ I would like to be able to ...
2
votes
3answers
133 views

Performing iterated integrals

I would like to define a function $f_n(x)$ and plot it with Manipulate. The function is defined by $$ f_{n+1}(x)=\frac{1}{\int_0^1(f_n(x'))^2dx'}\left(\int_0^xf_n(x'...
0
votes
0answers
75 views

Find a sublist with closest X and Y to a specific point in 3D

I have the following list of points and would like to know how I can find the sublist (i.e. point) which has a closest X and Y value to the X and Y value of a specific point (e.g here b1 ={{-20.6105, -...
2
votes
1answer
59 views

How do I use the Manipulate-function with GeoGraphics? [closed]

I'm trying to use the Manipulate function with GeoGraphics like so: ...
3
votes
1answer
108 views

Manipulate function [duplicate]

I'm trying to generate this simple graph using the Manipulate function f[x_] := a x + b x^2; Manipulate[Plot[f[x], {x, 0, 1}], {a, 0, 1}, {b, 0, 1}] However, ...
3
votes
1answer
89 views

Dividing a long code into parts

I have long code that I would like to divide in several parts (for readability) to be saved in different files. Then, later, I could use those parts into a different notebook. The parts I am thinking ...
0
votes
1answer
42 views

Manipulate: variable localization inside nested `Control`

Below is a piece of my code I have trouble with: ...
3
votes
1answer
113 views

How can I prevent TabView from resetting the current tab?

This is a simplification of a problem that has arisen in a project regarding Euclidean activities for verifying proportions via operations on pairs of magnitudes. In the project, the LocatorPane is ...
3
votes
1answer
239 views

Exporting a Manipulate/Animate with sound to create a Video

In the Documentation of Video (under Scope, 4th example) a Manipulation is combined with audio and exported as a file.mp4 video: ...
2
votes
1answer
85 views

Listing numbers whose digit sum is greater or equal 5

I just started using Mathematica and at the moment I'm learning some things. As you can see in the headline, I want to make a list of numbers (up to 100) whose digit sum is greater or equal 5. I ...
0
votes
1answer
75 views

Blank plot is returned when trying to use Manipulate[Plot3D...] on the output function of NDSolve

I am currently trying to solve a transient cylindrical diffusion problem with space variable (r,z). Using NDSolve, I get a certain Interpolation function but I can't plot it no matter what I try. ...
1
vote
1answer
79 views

setting slider for multiple sets of manipulating variable Manipulate

I am working with data and using manipulate function. I have two sets of values in the manipulating variable list which I combine to form a single list. So, the increment which forms the first set won'...
-3
votes
1answer
34 views

sequential execution of a group of commands (subroutine like)

I have a set of data all formed via AppendTo and like to apply them synchronously and consecutively to a group of commands, much like a in a subroutine. The commands in that "subroutine" are not ...
0
votes
0answers
82 views

Using Manipulate with inequality constraint

I'm trying to manipulate the plot of the following function: ...
3
votes
1answer
54 views

About function with Manipulate and order of evaluation

I have many problems to understand how mathematica evaluates Manipulate[] when I use function before or inside Manipulate[] . ...
1
vote
1answer
27 views

Error when using limit of sum as parameter

Here is my code so far, which works when I set an upper limit for the sum in F: ...
0
votes
0answers
38 views

UI building, how to input an array of number in the Manipulate function?

I'm trying to build a simple financial app with Mathematica, i'm having problems with UI building (nothing fancy, it's just an hobby). Here is the code. The problem is with the Manipulate function, i ...
2
votes
1answer
40 views

Manipulating two graphics sets with the same variable

I have two graphics for a visualization that both depend on the same parameter (an angle). I'd like for both graphics to be controlled by the same slider, but I can't have the graphics overlay each ...
1
vote
1answer
322 views

Plot Point On StreamPlot

How would I go about plotting a single point in the $x,y$ plane given by; $$\left(\frac{\lambda d -b\mu}{ad-bc}, \frac{a \mu -c\lambda}{ad-bc} \right)$$ Where we can take $a,b,c,d,\mu$ to be positive ...
1
vote
2answers
50 views

Expand a slider only when a checkbox is checked and Animate for only once

I have a random walk and I created a checkbox for the animation of the walk. I want the checkbox to do the followings, but I have not found a solution yet: check the checkbox -> the slider of n ...
2
votes
1answer
29 views

RandomPrime inside Manipulate gets evaluated multiple times

Manipulate[ m = RandomPrime[d]; {m, d}, {d, {20, 50}, SetterBar} ] Basically, I expected the code to generate a random prime m (under the upper bound d) for me ...
3
votes
0answers
113 views

Create my own voice on Mathematica 12 [closed]

I want to create my own voice on Mathematica 12 and use it for this function SpeechSynthesize["Hello"] We can use theses voices on Mathematica ...
1
vote
1answer
36 views
1
vote
0answers
87 views

How to get the coordinates of a 3d graph when I have two variables and a constant?

f[p_, q_, c_] := -p*Log2[p] -q*Log2[q] - (1 - p)*Log2[1 - p] - (1 - q)*Log2[1 - q] + (p*q + (1 - p)*(1 - q))*Log2[c] + (1 - p*q - (1 - p)*(1 - q))*Log2[1 - c] ...
3
votes
2answers
159 views

How to drag an overlay image over the reference image?

There are two images in this question. I want to overlay the img1 over img2 to see where they match and I want to do it manually:...
0
votes
1answer
60 views

Module[Monitor[ ... ]] doesn't work when called by Manipulate?

My example function progressFunction[time_] := Module[{t}, Monitor[For[t = 0, t <= time, t++, Pause[1]], ProgressIndicator[t, {0, time}]]] does ...
0
votes
1answer
44 views

Discontinuous plot when it should not be

I am trying to fix the plot in the manipulate to be continuous. I used Exclusion->None and adjusted the PlotPoints too. Nothing has worked so far. Could anybody help me to have a continuous plot? <...
5
votes
1answer
134 views

My first Mathematica project code review, Dodecahedron

I thought of a project to get my feet wet with Mathematica and have completed it. If anyone finds time to look at the code and send some feedback I would appreciate it. If it's inappropriate to ask ...
2
votes
2answers
51 views

How can I optimize the Manipulate function in plotting?

Ahoy! I'm trying to create a Fourier series visualization tool that allows me to interactively view a Fourier series as a function of the number of terms using ...
1
vote
3answers
102 views

Manipulate and parameters in NDSolve

I'm trying to use Manipulate to change some parameters in these differential equations, as follows: ...
3
votes
1answer
52 views

Generating Manipulate Controls for Indexed Variables

I would like to know a method to share variables between Manipulate environments. I understand that the variables used in controllers are a kind of local ones and ...
0
votes
0answers
48 views

Construct UI for image

I am trying to build the User interface, whereby when binarize is clicked, it gives its slider and its respective MeanIntensity and StandardDeviation. The same for EdgeDetect and MorpologicalBinarize. ...
0
votes
2answers
59 views

Inlcude binarize methods in Manipulate

I would require the binarize methods in the Manipulate interface. Thanks ...
4
votes
1answer
64 views

AnimationRunning option of Animate misbehaving

This simple example gives a strange error. ...
1
vote
1answer
49 views

How do you use functions inside a Manipulate?

While modeling a falling object, the following code works fine: h[t_] = 10 - g*t^2/2; Manipulate[ Graphics3D[{Blue, Sphere[{0, 0, h[t]}, 2]} {t, 0, 6}] But if ...
3
votes
1answer
149 views

Missing pendulum snake patterns

Hello, I wanted to do a pendulum simulation and be able to replicate the patterns that are created by creating several pendulums at once. But for some reason after the first seconds, I cant see them. ...
3
votes
2answers
132 views

Manipulate Continuously Evaluates

Paring a much more complicated example down I came to an MWE: Manipulate[ x = {a, a}*# & /@ {{1, 1}, {2, 2}}; x = {1, 0}*# & /@ x; , {a, 1, 10} ] ...
1
vote
1answer
41 views

Manipulate does not work if an equation with a variable parameter is not explicitly written

I have a little problem using the Manipulate command. I am trying to write down the parameter control of a function that is entered into this command not explicitly. But in this case, the variable ...
2
votes
1answer
65 views

How can I show the value of a function on Manipulate alongside the plot?

Suppose I have the following Manipulate function, Manipulate[Plot[Sin[a x + b], {x, 0, 6}], {a, 1, 4}, {b, 0, 10}] running ...
2
votes
2answers
77 views

Isn't there a better way to display mathematical equations as labels, in Manipulate[ ] etc.?

I often want to output a mathematical equation in a text environment, and I find it very cumbersome and often the result is also not satisfactory. This example out of the "Advanced Manipulate ...
0
votes
1answer
55 views

Can't plot g[x] in Manipulate

Where did I get wrong? Even adding Evaluate@ before g[x] can't solve this mess. ...
3
votes
2answers
359 views

Using Manipulate to plot a function's time evolution

I am trying to plot a function in Mathematica using Manipulate to check how a function evolves with time. I am able to get sensible results with Python, though in Mathematica there is an overshoot in ...
2
votes
1answer
49 views

Manipulator label issue

Here is a small prototype construct mimicking a more complex manipulate environment I am trying to build: ...

1
3 4
5
6 7
38