Questions tagged [manipulate]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
53 views

Precompute points in Manipulate

I wish to carry out a parameter sweep for a certain function in Manipulate, and create a plot for each parameter set. Each plot of the function takes ~ 10 seconds, so I would like to precompute the ...
user avatar
  • 105
2 votes
1 answer
105 views

Limit of Summation K is Not a Number

I am trying to animate the general solution to a particle in a box (Schrodinger eqn), but anytime I change B to something greater than 0, it gives me the limit of summation error message. I apologize ...
user avatar
0 votes
0 answers
40 views

Two interactive ListLinePlots

I need to build an interactive interface to visualize multiples plots at the same time. Let's consider two lists: ...
user avatar
  • 21
1 vote
1 answer
70 views

Add a Radio Button to Manipulate

...
user avatar
  • 141
1 vote
1 answer
78 views

Make plot manually update with Manipulate instead of auto resetting

I'm trying to write a script that will dynamically update when I change the tensor that I am working with and the interval tensor elements. Whenever I update the tensor elements that I am working with ...
user avatar
-1 votes
0 answers
48 views

Plot automatically set to zero when Dynamic function is updated

I'm trying to write a script that will dynamically update when I change the tensor that I am working with and the interval tensor elements. Whenever I update the tensor elements that I am working with ...
user avatar
0 votes
0 answers
24 views

Using Manipulate to both change tensor elements and select different tensors

I want to display three different tensors after I transform them within the manipulate function I have three tensors that I want to transform, C1, C1h, and C2, then change through with a PopUpMenu to ...
user avatar
1 vote
1 answer
76 views

How to produce plots determined by tensor element manipulate function

I want to produce plots within the manipulate function, with the functions determined by the values that I use in the manipulate function. I've gotten the tensor elements to work fine in producing the ...
user avatar
0 votes
1 answer
46 views

How to make a matrix a set of variables to be manipulated?

I have the following f[xx_, xy_, yx_, yy] := {{xx, xy}, {yx, yy}}; f[a_] = f[xx, xy, yx, yy] but I don't want to write all the variables for future applications, I ...
user avatar
0 votes
2 answers
53 views

How to make matrix elements variables [closed]

I have the following matrix mat := {{xx, xy}, {yx, yy}}; I want to be able to manipulate the matrix elements with the manipulate function ...
user avatar
1 vote
1 answer
26 views

Evaluation of global variables and function arguments inside Manipulate[Plot[]] - simple problem [duplicate]

I'd like to pass functions / expressions into Manipulate[ComplexPlot[...]...] and have Manipulate update some of the values and then update the plot correspondingly. For instance: In[161]:= ClearAll[f,...
user avatar
3 votes
1 answer
75 views

problem in plotting phase portrait t for nonlinear system of difference equation

I have tried to do a code about phase portrait plot for this system of difference equation: \begin{align} x_{t+1} &= ax_{t}^2+y_t+1 \\ y_{t+1} &= bx_t^2-1 \end{align} I took 'a=0.5','b=2' but ...
user avatar
0 votes
0 answers
47 views

Fullscreen "real-time" animation without margins

Suppose you have a function mapping a discrete input, e.g., ranging from 1 to $n$, to an image. Each image resulting from a sequence of such inputs should be displayed in fullscreen one after the ...
user avatar
0 votes
0 answers
46 views

Save and view multiple Manipulates in one file

Following a suggestion under this question, I tried to use several Manipulates to record groups of many plots. This is to avoid the painful delay and freezing of ...
user avatar
  • 4,226
1 vote
1 answer
59 views

How to combine manipulate graph with listplot

I am trying to simulate Jiles Atherton model with my experimental data,but I am not able to combine the simulated one with experimental one. I am getting the error "could not combine the graphics ...
user avatar
1 vote
0 answers
38 views

Manipulate reevaluate every time

my code is working, however I have a problem, every time I navigate to the pages of the dataset, the Manipulate performs a re-evaluation bringing me back to the first page of the dataset. I would like ...
user avatar
4 votes
4 answers
290 views

Create a Manipulate of a nonlinear transformation of R3

The following Manipulate animates a nonlinear transformation of R2: (x,y)->(x+Cos[y],y+Cos[x]) ...
user avatar
  • 4,701
0 votes
0 answers
51 views

Function aborts when inside manipulate

I have a function that completes without problems, as shown here. VisualizeRx[textimage, "test", 1, 0, 0, "WriteFiles" -> False]; But when ...
user avatar
  • 1,857
0 votes
0 answers
48 views

How to use Manipulate for Finite Differences

I want to improve my code using the command Manipulate and being able to see the calculus of averages as the indexes l and u are moved. I did a simple example of a 4x4 matrix with the boundary ...
user avatar
0 votes
1 answer
97 views

Is there any alternative for Manipulate or Animate?

I have a project to animate heat equation in 3D. I have the following problem $$u_t=u_{xx},\qquad 0\leq x\leq 1 \land t>0$$ $$u(0,t)=u(1,t)=0$$ $$u(x,0)=\begin{cases} 2x, & 0\leq x<\frac{1}{...
user avatar
0 votes
2 answers
106 views

How to plot functions from user input?

Manipulate[g[x_] = f; Plot[{g[x], g[2]}, {x, -9, 9}], {{f, "Enter a function...", "f(x) ="}}] Hi, I'm relatively new to Mathematica and this ...
user avatar
  • 1
0 votes
1 answer
84 views

Animate a point that follows a function inside a plot

I'm trying to create a plot that shows an animation of a point moving along a function. The idea behind this is that a I want the point to follow the function until the discontinuity point. For every ...
user avatar
  • 69
0 votes
0 answers
24 views

Soave Redlich Kwong Equation Derivation and Manipulate Extraction

I have two questions regarding the use of mathematica with deriving-applying Soave Redlich Kwong Equation. The first figure shows the equation themself. 1-When I take the first and second derivatives ...
user avatar
5 votes
1 answer
78 views

How enforce a range constraint on an InputField for a Number as a Manipulate control

Enforcing a min/max range using a Slider is easy. Here it a Number is constrained to 0..1: ...
user avatar
0 votes
1 answer
76 views

Two locators in separate plots using Manipulate

I want to create two figures, side by side, each with an independent Locator. I want to do this using Manipulate, because I can easily use information from each Locator in both plots. This answer did ...
user avatar
2 votes
2 answers
123 views

Animated contour plots inside multiple shapes

I am new to Mathematica and have recently been trying to investigate solar weather on power grids. I have managed to plot the power grid being studied where the vertices are substations and would like ...
user avatar
0 votes
1 answer
86 views

create an animation of a string

I'm trying to create an animation of motion of a physical string, it should demonstrate a "jumping rope", but I don't know what function to use, I've tried parametric plot and vector plot. I ...
user avatar
  • 5
1 vote
1 answer
64 views

Using an Association as a Manipulate variable?

I would like to use an association in a Manipulate or a DynamicModule. Specifically, I'd like to click to change the Values of a list of Keys of an Association. Here is some non-working code that (...
user avatar
  • 2,617
2 votes
2 answers
113 views

How can I make Mathematica print the intersection of two intervals?

I'm trying to use NumberLinePlot and Manipulate to visualize how the interval $[t-1, t] \cap [0, 1]$ changes as the value of $t$ changes. My code is: ...
user avatar
5 votes
3 answers
261 views

How can I fill regions from range of x and y?

I have two lists below and each element in rangeX with the corresponding element in rangeY form a region/regions (or a line/...
user avatar
  • 2,392
3 votes
3 answers
177 views

How to speed up this Manipulate with Show?

I'm doing this manipulation where there is a mapping between functions as follows. However, why does it not work when I substitute ...
user avatar
  • 2,392
1 vote
1 answer
77 views

Why does RegionPlot show an empty plot?

Problem Setting I have defined the following functions. ...
user avatar
0 votes
1 answer
101 views

Table heading function thought Manipulate output

...
user avatar
  • 141
9 votes
3 answers
239 views

How can I add a vertical spacing in a `CheckboxBar`?

I have an example here from the solution of @krasten 7. In this I would like some vertical spacing between the checkboxes. Any ideas? ...
user avatar
  • 713
0 votes
2 answers
60 views

Popup menu for multiple function inside the manipulate [closed]

...
user avatar
  • 141
1 vote
2 answers
73 views

Mathematica add line to manipulate

...
user avatar
1 vote
1 answer
60 views

Display the strings inside the manipulate

...
user avatar
  • 141
0 votes
0 answers
35 views

Manipulate with Show causing tiny graphics Image

When trying to do a Manipulate on a Show for a Plot the plot becomes so tiny you can't see it any more
user avatar
  • 1
2 votes
2 answers
122 views

Selecting Plot for Locator

Assume I have a manipulate with two graphics/plots as outputs. One of my parameters is a locator. How can I select in which of the plots the locator appears? Let's say I have the output given by this: ...
user avatar
2 votes
1 answer
47 views

Poor rendering of graphics with Manipulate

The following code shows the third mode shape of a circular membrane.The rendering is extemely poor as the amplitue varies. Any suggestions on how to improve performance ? ...
user avatar
0 votes
1 answer
31 views

Manipulate plot with Eplilog where location of Point is given by a function outside of the Plot/Manipulate command

Consider a piecewise function such as f = Piecewise[{{x, 0 <= x <= x1}, {Sin[\[Pi] x], x1 < x <= x2}}] I want to plot f using Manipulate and add a ...
user avatar
  • 663
0 votes
3 answers
80 views

Code error using manipulate

Why this code doesn't work? Can anyone help me? ...
user avatar
2 votes
3 answers
70 views

Manipulate does not display the output from a Show correctly [duplicate]

The following code does not display the Plot correctly. Specifically, the Plot axes are not displayed in the output. ...
user avatar
  • 21
0 votes
1 answer
44 views

How to combine Filling with Manipulate in the given code to illustrate the total area that the lines cover?

I have three functions $f(x,y)\,,g(x,y,z)\,,h(x,y,z)\,$ ...
user avatar
  • 463
0 votes
0 answers
45 views

How do I use a Do loop on a Manipulate?

How do I use Table or Do Loop iterators inside Manipulate? Is there a way to use Iterators inside a Manipulate function? ...
user avatar
0 votes
1 answer
40 views

Evaluating a function outside Manipulate

I want to plot geodesics on surfaces, where I can change the surface and its parameters. ...
user avatar
3 votes
2 answers
145 views

How to run Manipulate variable with different ranges?

In this code my c variable runs from -5 to 5. What should I do if I want to run only in ...
user avatar
  • 2,392
1 vote
2 answers
74 views

How do I use Manipulate on Show to remove/add a group of plots?

I want to be able to use Manipulate on Show[plot1,plot2] in order to make groups of plot appear/disappear. I've tried running the code below but the checkmarks doesn't add/remove the visibility of ...
user avatar
4 votes
3 answers
293 views

how to make two dots moving along two curves?

I got this code from a previous thread and then modified it a bit. ...
user avatar
  • 2,392
6 votes
3 answers
250 views

How to merge join two matrixes?

First, I have a 3x3x2 matrix A, which looks like: then i have a 3x3x1 matrix B, which is: How to merge the B into A and make a 3x3x3 matrix by appending each of the element of B into corresponding ...
user avatar
  • 113

1
2 3 4 5
39