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
1answer
173 views

Manipulate executes expressions multiple times

I am using Manipulate for a rather intricate front end for data visualization. I was getting very sluggish performance and was able to boil the problem down to a ...
0
votes
1answer
156 views

Can I combine a manipulate plot and a plot of data from a file?

I am fitting a theoretical equation for a complicated curve to some experimentally measured data. As you might be aware, algorithmically quantifying 'goodness of fit' for a complicated curve is ...
4
votes
3answers
731 views

Manipulate using a variable defined outside of the manipulate function [duplicate]

I want to do something like this: expr := x^e; Manipulate[Plot[expr, {x, 0, 4}], {e, 1, 3}] But the plot shows up empty. Yes, it works if I do: ...
6
votes
2answers
2k views

Export animation of a Manipulate autorun sequence?

I've got a Manipulate that does a vector field plot. Basically a function that returns a list of Graphics objects and a couple of sliders: ...
9
votes
2answers
438 views

Simple problem with Manipulate and Plot

Would anyone have an idea why the following doesn't work: rule = {z -> x^2 + 2 x + y}; Manipulate[ Plot[z /. rule, {x, 0, 10}], {{y, 2, "y"}, 1, 5} ] But ...
13
votes
5answers
584 views

How are parameters evaluated for a Plot in Manipulate

I am trying to get my head around how Manipulate evaluates functions in a Plot. I have read the introduction to Manipulate, and introduction to Dynamic, but I still ...
9
votes
2answers
353 views

“Reset” Button for Manipulate

I want to distribute a .cdf to my students wherein they manipulate 5 locators on a graph to define various shapes. The .cdf opens with the locators in a "nice" position, but of course it is very hard ...
2
votes
1answer
70 views

Incorrect information displayed when slider is moved (intermittent)

All, the following code graphs 10 different solutions for a first order ODE and allows the user to modify certain equation parameters to see how the graph is affected: ...
0
votes
1answer
126 views

How do I scale three independent variables in a Manipulate?

cross-posted on the Wolfram Community forum I'm trying to ilustrate the difficulties in assigning bins to a data set and then running a comparison of the bins against a binomial distribution for all ...
3
votes
2answers
145 views

How can I track the execution time of an evaluating Manipulate cell?

In Wolfram's tutorial on Advanced Manipulate Functionality, a nice example of a continually evaluating Manipulate cell is presented: ...
0
votes
0answers
273 views

Using Solve Within Manipulate to Model Feedback Control System Problem

This post is extremely long and I do apologize - but please bear with me with all the explanation of the context of the question - due to how long the code is I have included a hyperlink where you can ...
0
votes
2answers
124 views

How Do I Upgrade a Show to a Manipulate?

I'm trying to ilustrate the difficulties in assigning bins to a data set and then running a comparison of the bins against a binomial distribution for all values- n, p. The code I have so far is ...
4
votes
4answers
239 views

Elegant Matrix Combinations

Suppose you have a matrix (mxn), simplified for illustration m= {{a, b, c}, {d, e, f}} And a set of combinations (simplified for illustration purposes but can ...
1
vote
1answer
98 views

How can I make check boxes that put elements into a list?

Right now I have a blank list that I am putting in Manipulate[]. I want to be able to choose whether 1,2, or 3 are in this list by setting z1,z2, z3 as True or False: ...
-1
votes
2answers
86 views

Manipulate store values

Is there a way to store the numerical values from a manipulate function in the form of a table? For example, if the function is f[x_] := x^2 - 2x Can one store ...
3
votes
2answers
327 views

Ploting a 3D vector field using Manipulate, VectorPlot3D and NDSolve

My aim is to plot a vector field of the following system with a few trajectories: $$r'(t)=i-l.r(t)-\text{ux}. r(t). x(t)-\text{uy}. r(t). y(t) \\ x'(t)=\text{ex}. \text{ux}. r(t). x(t)-\text{mx}. ...
6
votes
3answers
322 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 ...
0
votes
1answer
102 views

Counting Stochastic Processes and displaying relative value

Counting Stochastic Processes and displaying relative value I have two watermarks and multiple stochastic processes given. I want both to display and count the stochastic processes which are below ...
0
votes
1answer
106 views

Displaying Values of Fuction at end of Period by Grid

My intention is to place the values of two function into a small box within my chart. To be more precise I have two vectors. A meanvector which shows the average value of all simulated stochastic ...
0
votes
1answer
212 views

Plotting the simulation of Brownian Motions with multiple thresholds

I have the following problem: I have a watermark in this model where not only the mean of all stochastic processes is calculated, but also the mean of those processes which remain beyond a given ...
0
votes
1answer
120 views

Stopping- threshold and stopping- time of stochastic processes.

Rod Lm helped me to generate the following code, which I want to extend a little bit. So my intention is to use the threshold (the green line) as boundary in the following way: as soon as the process ...
0
votes
1answer
191 views

Brownian Motion with stopping threshold

I just want to generate one stochastic process, whereas I want to be able to manipulate the start value and the volatility. Furthermore, the process should stop when it reaches 5 However, as soon as ...
4
votes
2answers
194 views

Manipulate changing controls

Is it possible to use Manipulate and Switch to change the Manipulate controls? ...
4
votes
4answers
159 views

Change the colour of a ListPlot element in each iteration of Manipulate

I would like to modify the colour of dots in a ListPlot[Table[function]], e.g ...
1
vote
1answer
412 views

Manipulate showing the trajectory of a particle along a parametric curve

I have a particle which follows a certain trajectory given by rx and ry ...
3
votes
2answers
146 views

Dropping value of one variable when another changes

Context: There is a list of lists list where lists are different length. Using one control I change a part of list to view, and with another one — what certain ...
5
votes
1answer
146 views

Manipulate keeps updating due to a function

Edit: This is apparently only a problem on a mac running OSX. I am trying to use the 'stretchText' function by Jens. But when I use it in manipulate, the output keeps updating without changing ...
5
votes
3answers
278 views

Unexpected Setter Bar Behavior when Manipulate Nested in Dynamic Module

Consider this code: DynamicModule[{x, y}, x[t_] := t^2 + 5; y[t_] := t^3 + 5; Manipulate[Plot[fcn[t], {t, -5, 5}], {fcn, {x -> "Square", y -> "Cubic"}}]] ...
4
votes
3answers
344 views

Slow image manipulation

This is some extremely simple code that shows an image and manipulates a circle (that will be used to select a region of the image to analyze). All those Dynamics ...
5
votes
1answer
244 views

Altering layout and sizing of Manipulate controls?

I'm currently working on a display project using Manipulate and was wondering if there is a straightforward way to alter the placement of the control options that I ...
3
votes
3answers
109 views

Style changes between controls and graphics

In the following Manipulate, the style (font?) of the a changes between when it is a control label and when it is a label in the graphics. Is there a way to make ...
1
vote
2answers
238 views
1
vote
0answers
105 views

CDF with numerous independent manipulate objects

I have been working on my senior project that involves the creation of a CDF with multiple Manipulateexpressions. I need to protect my code so I have been trying to ...
5
votes
2answers
235 views

Building conditional lists with Manipulate

I'm trying to select elements of a list that satisfy some criteria using Manipulate[]. Given 2 lists: ...
1
vote
2answers
137 views

Lists not being recognized correctly within manipulate

I've created a keyboard-free panning system within Mathematica. The code does the job, but I continually get errors in relation to it, and I cannot seem to get it to perform within a CDF because of ...
1
vote
1answer
139 views

Behaviour of Locator

I seek advice regarding the constrained behaviour of the Locator: appears confined to square {0,0}->{1,1}. When I change starting position it snaps to this constrained region. The code I am referring ...
4
votes
1answer
189 views

Manipulate a Plot that contains a variable that contains symbol [duplicate]

This snippet mm = m Manipulate[{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}] (m is not defined anywhere) produces a sadly fixed ...
4
votes
1answer
149 views

Change CurrentValue of a key press

I was wondering if there is a way that I could change the value of a key press such as Shift, Ctrl, etc. Normally, when nothing is pressed, the CurrentValue will ...
4
votes
1answer
220 views
1
vote
1answer
127 views

Manipulate doesn't work for plotting a region where a matrix is positive semi-definite

I'm facing the following problem and would very much like you help. Thanks is advance! I have defined the following 4x4 matrix: \begin{equation} S=\left( \begin{array}{cccc} ...
5
votes
3answers
226 views

Switching among view points in a Manipulate expression

Edit: Some additional viewpoints were included to make it easier to test. Here's code for an alternative function, the graph of which is a bit less symmetric. Feel free to use either code set: ...
0
votes
0answers
30 views

Applying Some Kind of Timing Function to AutoRunSequence [duplicate]

Ok, so I'm exporting a video to MOV format that is coming from a manipulate function (I'm demonstrating CLT to a class that doesn't have calculus as a pre-req, if anyone is curious). Anyhow, I'm ...
5
votes
2answers
202 views

Is it possible to manipulate FindFit

I was wondering if it is possible to manipulate a FindFit[] function. As a basic example, if I had an equation $ax^2+bx+c$ and a set of data, would it be possible ...
0
votes
0answers
163 views

Select and plot real positive solutions for a sixth order parametric equation

I need your help in order to solve the following problem: I have a sixth order equation: $ax^6+bx^5+cx^4+dx^3+ex^2+fx+g=0$ and I solved it using Solve[] command, ...
4
votes
2answers
374 views

Label names within Manipulate with ControlType->RadioButton

I modified an example from the documentation to have a RadioButton control over a specific list of values: ...
3
votes
1answer
131 views

Mouse click on BarChart elements

What I would like to do is explore a data set by clicking on elements in a BarChart. I have some existing code which uses a manipulate which I was hoping to modify. ...
3
votes
2answers
929 views

Combining manipulated plots

Let's say I have two manipulated plots: Manipulate[Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}] Manipulate[Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}] How can I create a ...
3
votes
1answer
158 views

Manipulate Slider over discrete collection. Keyboard control.

I would like to create a Manipulate slider that iterates over a discrete set of items. Something like the following ...
1
vote
1answer
257 views

How manipulate rasterized Graphics3D objects combined with non-rasterized objects

I am trying to construct a building with a manipulated sliding roof and other objects that can be manipulated. I have found that the manipulation of translations and rotations of graphics groups of ...