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

learn more… | top users | synonyms

6
votes
3answers
196 views
-3
votes
0answers
33 views

Hold and Release an import [on hold]

I'm in Manipulate bloc to make a dynamic car selector, but there is a point in which i need to load the car specifications but if I don't hold the import causes an error here is the code ...
2
votes
0answers
62 views

The most simple Manipulate freeze the notebook on v10.1

I realize this won't be a particularly clear question. As I'm not able myself to find a pattern for the problem I'm talking about I won't be able to give enough informations to make it fully ...
0
votes
0answers
49 views

The graph of a piecewise function [on hold]

Let $$f(x)=\begin{cases} n,\quad\text{if }\quad n<x<n+\frac{1}{n^3}, \\ 0,\quad\text{if }\quad n+\frac{1}{n^3}\leq x\leq n+1 , \end{cases}$$ Using mathematica, I attempted to draw the graph ...
14
votes
0answers
95 views

Initial values in Manipulate are hijacked by existing global variable values

Is the following behaviour a bug? It's the same in all versions between 9.0-10.2.0. Let's try this simple Manipulate with the initial value of ...
16
votes
3answers
182 views

Resizing or moving Notebook window causes Manipulate to update its argument

Bug introduced in 10.0 and persisting through 10.2.0 Check this example: Manipulate[Grid[{{RandomReal[10]}, {Plot[Sin[x], {x, 0, 2 Pi}]}}], {a, 1, 3}] As ...
1
vote
1answer
38 views
1
vote
1answer
49 views

Manipulate not updating the way I expected it to

I want to make a selector that allows me to select a date and, depending on the date, load a list of car makes. After that, I should be able to select a specific car make. ...
0
votes
1answer
36 views

Running an animation if a certain condition is met using Manipulate

I'm having trouble finding a way to play an animation (inside Manipulate) if a certain condition is met. I'm representing liquid volume with rectangles and if the ...
1
vote
0answers
70 views

Possible bug with Manipulate [duplicate]

Bug introduced in 10.1.0 and fixed in 10.2.0 I am observing a potential bug not present in MMA 10.0.1.0 on Win 7 Ultimate, but observable on MMA 10.1 on Win 7 Enterprise. It seems to work with ...
0
votes
1answer
68 views

When plot a list, how to Manipulate a sequence of defined functions at the same time?

I am trying to plot a sequence of functions, for example{(a+b)^i},{i,1,100}. All the expressions I have stored in the list. Now I want to plot them and see how their value would change if I change ...
3
votes
2answers
81 views

Interdependent Setter controls in Manipulate?

Documentation here shows a nice example of interdependent Slider controls in Manipulate: ...
0
votes
1answer
38 views

How to Include multiple plots in a single Manipulate [closed]

For example if I had one function Sin[x]/x=c and a second one Cos[x]/x=c than Manipulate for ...
1
vote
2answers
51 views

Specifying the PlotRange according to a desired center

I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...
0
votes
1answer
77 views

How to make an animation of circle “decaying” into two smaller circles using Manipulate?

I have defined three functions: $x[t], x_1[t],x_2[t]$. $x[t]$ describes the motion of a circle of some radius $r$ that, at some moment $t_0$ decays into two circles of radii $r_1$ and $r_2$. The ...
6
votes
3answers
144 views

Easy way to bind rect to geometrical 2D line?

I got stuck with the following problem. For some calculation and visualization purposes I need to draw different shapes (like rectangle) with proper slope on custom line. The trivial example: ...
0
votes
2answers
94 views

how to use InputField function within the manipulate function

I am trying to make a demonstration that can take in a matrix and create a vector field. Currently I have the demonstration all functioning but to define the matrix it uses sliders. I know they cannot ...
1
vote
1answer
178 views

Manipulate - Evaluating Value of Function [closed]

I would like to visualize the properties of a threshold, which is a value of a function. Unfortunately, the value is expressed as scientific value (an approximation with 3-5 decimals would be fine) ...
4
votes
2answers
70 views

Keeping a plot fixed as one parameter changes in Manipulate

In the following code I'm plotting the contour $f(x,y)=0$ as well as the family of lines $y=mx$: ...
1
vote
0answers
15 views
4
votes
1answer
93 views

How to restart a Clock

The code below is to demonstrate color afterimages. The user chooses a color, fixates the changing number at the center until it reach 30 (seconds), then manually switches to white to observer the ...
2
votes
3answers
103 views

How should I debug a failed Manipulate of RegionPlot?

I am trying to build a package that will display a sector of an ellipse where the angle is taken from a focus of the ellipse rather than from the center. The code seems to work fine when called with ...
3
votes
2answers
73 views

Manipulate a 2D point controlled simultaneously by Locator and its coordinates

I'm trying to have a point in the plane which can be manipulated both using Locator as well as inserting its $x$ and $y$ coordinates. My attempts at doing this are: ...
4
votes
1answer
52 views

Set control A to a specific value if control B is ever changed?

I've had trouble with this and issues similar to this in the past, where I need to track when a controlled variable is changed. Basically I have two Sliders (call ...
3
votes
2answers
66 views

How to use locally scoped dynamic variables in Manipulate for expression and control parameters

I have a Manipulate that has dynamic variables that I want to use in the displayed expression and use in the parameters for the manipulate controls. I only ...
2
votes
4answers
110 views

ToExpression in Manipulate

lets take this small example code: Manipulate[Plot[Sin[x (1 + a* x)], {x, 0, 6}], {a, 0, 100}, Button["a=90", ToExpression["a=90"]]] By clicking the button I ...
2
votes
2answers
102 views

How to restrict the motion of a Manipulate-generated Locator along a line?

If one uses a stand-alone locator and needs it to only be movable along a curve, say, defined by a function f[x], one can use a simple construct: ...
6
votes
3answers
428 views

Locators in Manipulate not moving properly

I thought a simple Mathematica kerning machine (for adjusting the space between characters) would be interesting, but I'm having trouble with the locators. (There are a number of other questions ...
1
vote
3answers
153 views

Trouble using Manipulate and NDsolve for coupled ODE's

I'm aware that there are a few threads on the topic of solving coupled ODEs using NDSolve and Manipulate. Based on those, I ...
7
votes
1answer
989 views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
3
votes
1answer
83 views

How to control when NDSolve is called inside Manipulate

Let's say I have a function which returns the resulting function of a differential equation solved by NDSolve: ...
3
votes
1answer
37 views

Manipulate with a function as a parameter

I'm trying to make a Manipulate command to plot the contour lines of a function of two variables $f(x,y)$. I think I should use the "InputField" option somehow, and I thought of something like this: ...
2
votes
1answer
81 views

How to handle Indeterminate TimeConstrain

I have to use Timeconstrained[aux] first for avoid some bigs calculation that dont need and it use a lot of time of calculate, so i can't do this. ...
1
vote
1answer
45 views

A single point moving at different speeds through different regions on a plot (Manipulate)

I've been working on this for a while with little success. I have a point (that needs to be connected to a Manipulate control in some way), that moves up the plot ...
5
votes
2answers
102 views

Can the increment in Manipulate, Table, Range, etc. be subject to an If statement?

In this demonstration I'm working on, I would like to plot a piecewise function with the tangent line to the function at a point that is determined by c in the code ...
6
votes
1answer
132 views

Manipulate code crashes V10.1

This code is working with Mathematica 9, but Mathematica 10.1 is becomes unresponsive when I try to evaluate it. ...
3
votes
2answers
56 views

Can I disable specific items in a PopuMenu control?

I have a PopupMenu in a Manipulate with items in it that are inapplicable in some cases, and rather than removing them, I would ...
0
votes
2answers
101 views

Manipulate executes twice [duplicate]

I need help, guys! Here the script: ...
0
votes
1answer
33 views

Grid in manipulate [closed]

I am trying to plot two functions using Manipulate which use the same sliders. When I use Grid to to this the text, "Grid[]" also appears in my output. Using List also causes a similar problem Is ...
1
vote
0answers
40 views
3
votes
4answers
427 views

How to select interactively datasets to plot with Manipulate

I'm using Manipulate to visualize three datasets: Manipulate[ListPlot[WHAT -> what], {what, {dataset1, dataset2, dataset3}}] Now with this solution I can only ...
7
votes
2answers
1k views

Manipulating plot of random iterated function system fractal

I'm generating the Sierpinski Gasket by implementing a chaos game in Mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...
1
vote
1answer
44 views

How to make autorun stop at the max value?

What should be configured in Manipulate in order to make autorun stop at the max value of a variable and not go back to its initial variable?
0
votes
2answers
66 views

Create a moving plot along a parametric plot using Manipulate?

I have been looking through Manipulate examples and haven't been able to create a working plot yet. I have a parametric plot defined: ...
0
votes
1answer
51 views

Stopping sliders in Manipulate going to dynamic unfeasible regions

I am trying to use Manipulate to create a function which allows a user to play with a probability density. The following generates a static density over the range 2000 - 4000, then allows the user to ...
1
vote
1answer
44 views

Slider with initial value on manipulate [duplicate]

Consider this simple code Manipulate[n, {{n, 3}, 1, 5, 1}] It will produce If we click on Show-Animation-Controls button next to the slider, suddenly the ...
0
votes
0answers
29 views

Part of longer code has an error - how can I debug?

Please can someone help me locate the problem? ...
3
votes
3answers
146 views

NDSolve and Plotting

So I am having an issue using NDSolve and plotting the function. So I have two different NDSolve calls in my plotting function. ...