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

23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
0
votes
3answers
77 views

Manipulate with dynamic input

I really new to Mathematica and I am working on developing interactive CDF. To understand the basics I start with a simple example but even with that I have a problem. In this simple CDF I want to ...
0
votes
1answer
78 views

Conditional function plot in Manipulate

I'm looking into the stability of solution of a set of chemical rate equations. There is a set of rate constants {$k_i$} I which to manipulate, and I want to find the stable solutions where $\frac{\...
1
vote
1answer
108 views

Manipulate using DateObject

My question is about making a animiation using 'manipulate' using DateObject as parameter. I start with importing a file.txt, like: ...
1
vote
1answer
81 views

Click individual selections from a button

I have a graphic where each Arrow, Rectangle, and Text is a ...
3
votes
1answer
48 views

Context-aware Locator

I'm trying to use a Locator for some image processing tasks. Unfortunately, the images we're using have a high dynamic range of low-frequency black and white ...
2
votes
0answers
45 views

Optimization for iterating and plotting a matrix product and its elements?

I have an iterative matrix product of this type Since i didnt knew how to do it, I explicitly wrote the product as {Ayn + Bxn, Cyn + Dxn} and evaluated it with the NestList construct ...
2
votes
1answer
54 views

How to use locator continuously with grid of graphics

I am trying to find out, how to properly use a locator continuously within manipulate and a grid of graphics. I have the following example out of this code ...
0
votes
0answers
41 views

Mathematica hangs on manipulation

Mathematica hangs on this code and after abort returns strange evaluation ...
1
vote
1answer
64 views

Calling functions defined inside Manipulate in other notebook?

I'm creating a notebook with a Manipulate and I'm trying to call/use a function from another notebook (I use Get for that), in ...
1
vote
3answers
126 views

Multiple Plots inside a Manipulate with different dynamic variables on their x-axes

I have an expression with lots of variables, and I would like to make several plots of the expression, where the axis in each is a different variable. The idea is to put them side by side inside a <...
1
vote
2answers
139 views

How to plot coupled Differential equations with changing parameters?

I'm a new user of mathematica. What I'm trying to do is following: I have two coupled non-linear differential equations. Say $x'(t)$ = $A− (B +1)x + x^2 y$ $y'(t) = Bx − x^2 y$ What I want is to ...
1
vote
0answers
48 views

Manipulate Listplot of table [closed]

There is a simple code but it doesn't work Manipulate[ ListPlot[ {Table[ {Sin[Pi/4 Cos[t]], -Cos[Pi/4 Cos[t]]}, {t, 1, n, 0.1}]}], {n, 1, 20}]
1
vote
1answer
47 views

Manipulate, graphing a set of functions with comet effect, with fixed axes and history

I want to solve a basic differential equation with a parameter and have the resulting solutions show as a set of functions in a merged plot. I want to be able to do two things: 1- Be able to compare ...
0
votes
1answer
32 views

Taking user input from a button in `Manipulate`? [duplicate]

The following code is intended to display one image from a list of images, and Export the selected image to a file when the "Save" button is activated: ...
4
votes
2answers
572 views

Manipulate 2D random walk

Consider the first $10000$ digits of $\sqrt{2}$ and present them as a “random walk” by converting them in base 4 representing 4 directions. Following code produces this random walk ...
3
votes
1answer
55 views

How to mimic CheckboxBar's Method->“Active” option in a Manipulate's checkbox control?

CheckboxBar has a Method -> "Active" option that allows you to click the label to change the state of a checkbox. I would ...
3
votes
1answer
126 views

Show the locus of the vertex of parabola

For the parabola y = a x^2+ b x + c I want to see the locus of the vertex as b varies (with a...
3
votes
3answers
94 views

How to change random values in manipulate?

I made a Manipulate box that is working very well, using lots of random numbers. I would like to add a button to "reset" (i.e. to change, randomize, or reselect) all the random parameters. Here's ...
0
votes
1answer
36 views

Manipulate different function and variable

I have list of functions such that test = {test1[a,x], test2[a,x], test3[a,x]}; I would like to plot this three function using manipulation ...
4
votes
2answers
106 views

Want Manipulate to be low resolution enough to render fast but no so low resolution that it is useless

When using Manipulate to graph a simple surface (sum of 2 sine waves) with Plot3D, setting PerformanceGoal->"Quality" makes it take about 1/3 second to render, while "Speed" sets it at such a low ...
1
vote
1answer
79 views

How to define a stochastic electromagnetic field? [closed]

I would like to show the effect of a stochastic electromagnetic field on a relativistic charged particle, using a manipulate box. The field should be randomly varying in time and in space, and be ...
-1
votes
1answer
53 views
0
votes
1answer
49 views

Problem with combining Manipulate and ParametricPlot3D

I've beein trying to solve this problem but somehow I just can't combine Manipulate and ParametricPlot3D. ...
0
votes
1answer
79 views

How to plot a two-dimensional position vector as function of time?

I got to a point where I have $x$ and $y$ coordinates of a position vector written as a function of time. x[t_]:=t^2-67; y[t_]:= Sin[t] t^4 + 5 t^2; Now my idea ...
9
votes
2answers
263 views

How to define variable “Rainbow” curve colors?

Firstly, I'm not asking about blending a color gradient on a curve. I would like to make the curve color uniform on all its lenght instead, but the color should change dynamically while we slide a ...
0
votes
1answer
77 views

Making a Manipulate showing a the motion of a particle [closed]

Solving a differential equation I got to the following result -(((R[n*Pi - t/w] Cos[t/w])/(n*Pi)) Then, using this solution, I create . ...
1
vote
3answers
186 views

How to apply a color gradient to a Rectangle primitive? [duplicate]

How can we apply a color gradient (say "Rainbow") to a Rectangle primitive ? Of course, I searched the documentation : http://reference.wolfram.com/language/ref/Rectangle.html, and also the site : ...
2
votes
1answer
85 views

Fitting EV charging curve

I would like to fit my set of data (x = time and y = power) as seen below, and obtain function of x describing it as close as possible, in order to manipulate it (applying different SOC, time offsets ...
0
votes
0answers
19 views

How to remove extra space around polar plot in manipulate? [duplicate]

In Manipulate, PolarPlot adds lots of useless space around the exterior circular grid. Is there a way to remove that space, so the whole circular plot could take more space ? Here's a MWE showing ...
0
votes
0answers
64 views

How to Use Mouse Events & EventHandler in Demonstrations

One of the primary criteria for an acceptable Demonstration is, of course, that multiple copies of the Manipulate Output Cells [MOCs] have to have independent controls and datasets: the operation of ...
3
votes
1answer
58 views

Different responses of Manipulate

Consider this code f[x_, y_, t_] := t Sin[2 Pi x] + 2 t Sin[2 Pi y] Manipulate[ Plot3D[f[x, y, t], {x, 0, 1}, {y, 0, 1}, PlotRange -> {-5, 5}], {t, 1, 2}] ...
1
vote
3answers
79 views

How to remove all buttons in Manipulate, except the input fields?

By default, when you click the small "+" symbol, at the right of a slider (in Manipulate and Animate), you get an input field and several buttons (play, pause, etc). How do you remove all buttons for ...
0
votes
1answer
99 views

How to prevent extrapolation in Manipulate? [duplicate]

How can I limit the time slider to the NDSolve solution range in a Manipulate box, so no extrapolation is used ? More specifically, here's a stripped down version of my Manipulate code which shows ...
1
vote
2answers
95 views

How to combine Plot, Manipulate and ContourPlot [closed]

I want to combine "Plot, Manipulate and ContourPlot", into one graphics display. I tried <...
3
votes
2answers
65 views

How do you manipulate a line that starts at a fixed point and moves with another line?

I'm trying to create a simulation of a person(line) walking along a wall(plane) with a lamppost behind the person(fixed point) that casts a shadow along the wall while the person is moving. I'm having ...
0
votes
1answer
62 views

How to display All Graph In one Graph

here is my code. for alpha and beta the value is always the same.i just change the value of rho.is it possible all these set value of rho is displayed in one graph? the purpose of this is i want to ...
-3
votes
1answer
178 views

How to turn off depth sorting of 3D curves for Manipulate?

Is there a way to turn off the default depth sorting of curves in a 3D output of several complicated curves ? Currently, I suspect that depth sorting has a very strong impact on performances on my ...
1
vote
1answer
48 views

assign a value to “elements” of a list, named as a “subscripted variable”

I'm stuck in scripting in Mathematica, since I need to assign a value to "elements" of a list, named as a "subscripted variable" (the subscript is also a variable), but it seems that in Mathematica it'...
2
votes
1answer
66 views

Is it possible to manipulate multiple graphs with one manipulate function? [closed]

I'm trying to find a way to manipulate a function and its derivative, but two variables of the function change. Is there a way to manipulate multiple graphs with the same set of parameters? Meaning, ...
-2
votes
1answer
93 views

Simulating a Wave Pulse

How to construct a code that superimpose n=10 one dimensional sinuisodal waves. each with an angular frequency ...
0
votes
1answer
43 views

How to use a PopupMenu in Manipulate? [duplicate]

I need to build a Manipulate to show one of several functions in 3D. The functions should be selected in the Manipulate box using a PopupMenu, but the documentation isn't very helpfull on this. So ...
3
votes
2answers
136 views

How to make the mesh to rotate with a surface in Manipulate?

Here's a Manipulate code to show a particular 3D surface, rotating uniformly in time. The point of this Manipulate box is to show that the surface do indeed rotate like a solid, so I can't "cheat" ...
3
votes
3answers
119 views

How to remove the white border in Manipulate?

Is it possible to remove the default white space around a 3D graphics, inside the Manipulate box ? Here's a small MWE to show the white border I'm talking about : ...
4
votes
2answers
109 views

Dynamicaly add multiple integrals to Manipulate

I want to use Manipulate[] for parameter n for this expression. $$\underbrace{\int\limits_\mathbb{R} \dots \int\limits_\mathbb{R}...
-2
votes
1answer
74 views

calling multiple functions in manipulate [closed]

Continuation Manipulate function to generate outliers I want to call a function in the manipulate environment so that the changing data is fed to another function and both the plots are plotted in a ...
1
vote
2answers
102 views

Incompatibility between Dynamic’s second argument and Wolfram Demonstrations

A central feature of the Wolfram Demonstrations is the use of multiple instances of the Manipulate output, placed into the Thumbnail and Snapshots sections – for instance here, that are used to ...
1
vote
0answers
53 views

Manipulate Tupper's self-referential formula [duplicate]

How to Manipulate $n$ in Tupper's self-referential formula? ...
1
vote
0answers
47 views

PlotLabel with Graphics [closed]

Wondering why my PlotLabel does not show up? ...