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

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
56 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
66 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 ...
13
votes
3answers
544 views

Particles bouncing in a 3D box

I made this Manipulate code which shows a pack of particles randomly moving inside a box. It has a huge performance issue. What should be the best way in doing "...
1
vote
2answers
143 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
3answers
131 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
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: ...
1
vote
2answers
138 views

How to do a parametric histogram?

Is it possible to draw a spectral histogram from two random sets ? More specifically, I have these two random functions (fmin, ...
4
votes
2answers
573 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 ...
0
votes
1answer
37 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 ...
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 ...
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...
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 ...
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
votes
1answer
55 views

Manipulate panel size problem

I have: ...
0
votes
1answer
50 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
80 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 ...
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{\...
9
votes
2answers
267 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 ...
1
vote
3answers
190 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 : ...
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 ...
2
votes
1answer
86 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
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 . ...
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 ...
1
vote
3answers
81 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 ...
3
votes
1answer
59 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}] ...
0
votes
1answer
100 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 <...
0
votes
1answer
63 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
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 ...
-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
67 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, ...
0
votes
1answer
44 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 ...
-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 ...
3
votes
3answers
121 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}...
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" ...
1
vote
0answers
53 views

Manipulate Tupper's self-referential formula [duplicate]

How to Manipulate $n$ in Tupper's self-referential formula? ...
1
vote
2answers
103 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 ...
0
votes
1answer
69 views

Keeping a plot label from automatically resizing

I have: ...
1
vote
0answers
47 views

PlotLabel with Graphics [closed]

Wondering why my PlotLabel does not show up? ...
1
vote
1answer
57 views

When slide the Manipulate's bar too fast the value is too few

A code can trace the kinetic point.But when you slide the bar too fast,you cannot get smooth curve like fllowing. ...
-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 ...
6
votes
2answers
126 views

How to horizontally center a button in manipulate?

I just need to center a button in the MWE code below. Currently, all I try doesn't work. I would like to horizontally center the button relative to the sliders over it, for aesthetical reasons only. ...
0
votes
1answer
58 views

Manipulate function to generate outliers

How to use Manipulate[] to make a point move vertically and become an outlier? Here I am trying to make $50$-th point move vertically.I have tried as below: ...