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

1
vote
2answers
88 views

Having trouble plotting. Here is my code:

Nothing is plotting when I try to run the code
1
vote
1answer
50 views

Extra restrictions in best response functions using Manipulate[ ]?

I have two best response functions that I have defined like this: ...
2
votes
1answer
103 views

Can I improve this sloppy code used with Manipulate?

I'm not an advanced user of Mathematica, and yet I managed to get the Manipulate command work to do something interesting. The problem I have is that I have the ...
3
votes
1answer
84 views

Mathematica hang on a Manipulate expression

Manipulate[Plot[Erfc[x/(2 Sqrt[t])], {x, -5, 5}], {t, 0.1, 5}] With a fresh kernel, after evaluating this, Mathematica will hang immediately if I try to drag the ...
0
votes
0answers
60 views

Bad behavior of Manipulate with a Greek variable inside

I'm getting bad behavior from Manipulate in Mathematica 10.4.1. A very basic demonstration: ...
1
vote
1answer
58 views
0
votes
1answer
60 views

CDF Player and CloudObject`Private` Problem

I'm trying to generate a simple Manipulate[] example showing Taylor expansion. However, the following code shows ...
6
votes
3answers
230 views

What's wrong with naming a rule?

Please have a look at the code below. The second Manipulate uses the name rl of the replacement rule given in the first line, ...
0
votes
1answer
58 views

Manipulate a plot with display of a condition

This is a how to question --- the example is without importance. I want to manipulate the plot of say a x^2 + b y^2 for (a,b) belonging to a specific set, but a + b > 0. Is it possible to make ...
1
vote
0answers
45 views

Periodic boundary condition trick

I'm plotting a curve on a compact space which is having periodic boundaries on the left and right parts. Currently, the code I'm using is working great, but I'm wondering if there's a simpler and ...
3
votes
2answers
76 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
1
vote
3answers
80 views

Correcting problems with the controls in a Manipulate

I am developing a toy application to teach me how to generate a more complex CDF app. The current toy app is taking integral. ...
1
vote
1answer
115 views

Building a interactive application that accepts lists of arbitrary length as inputs

I have the following function (Class Shape Transformation): cst[wl, wu, dz] where wl and ...
2
votes
3answers
114 views

Strong glitch with Evaluate in Manipulate

I'm experiencing a strong evaluation problem for a Manipulate box and I can't find the best solution yet. Here's a MWE to show the glitch : ...
23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
0
votes
3answers
82 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 ...
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
46 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
58 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
42 views

Mathematica hangs on manipulation

Mathematica hangs on this code and after abort returns strange evaluation ...
1
vote
1answer
71 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 ...
14
votes
3answers
571 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
153 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
147 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
50 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
37 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
154 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
579 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
57 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
97 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
127 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
80 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
108 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
56 views

Manipulate panel size problem

I have: ...
0
votes
1answer
51 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
85 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
82 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
271 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
208 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
88 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
67 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
82 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
101 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
102 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
64 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 ...