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

Manipulator label issue

Here is a small prototype construct mimicking a more complex manipulate environment I am trying to build: ...
1
vote
3answers
45 views

How to make `Manipulate[]` to show me the result of expression evaluation live (question updated!)?

I have code that works the way I need: ...
0
votes
0answers
31 views

Unknown Box Name (ToBoxes) Error

I'm getting the following error in Mathematica What is going on? How do I avoid such an error? In order to roughly understand how I'm getting this error, here is a bit of context: I'm using ...
1
vote
1answer
55 views

ParametricPlot3D doesn't show

I am trying to plot a given vector (which is not a function) using ParametricPlot3D but couldn't make it show the surface. I tried using Evaluate, Function and Through but it didn't work. ...
5
votes
1answer
179 views

Animating 1D Convection-Diffusion Equation to reach steady state

I'm trying to understand how the parameters ($c,D$) of the following equation: $$\frac{{\partial x}}{{\partial t}} = D\frac{{{\partial ^2}x}}{{\partial {z^2}}} + c\frac{{\partial x}}{{\partial z}}$$ ...
1
vote
1answer
55 views

How to make specific physics animation

I'm thinking about adding some animations in Mathematica to my last Physics assignment and I don't quite know where to start. Id like to make somthing like this image: which I made using PowerPoint ...
1
vote
0answers
40 views

Plot showing up blank when I define expression outside of Manipulate [closed]

I obtain an expression through various steps using the differentiate and solve tools, and then I would like to plot it using Manipulate. However, due to how the expression was obtained I would like to ...
0
votes
2answers
41 views

Using Manipulate with NDSolve expression of two differential equations

Hell, I am trying to model a physical system. The system composes of two partial differential equations with initial conditions defined. I wrote the code and everything works fine, just except me ...
2
votes
2answers
43 views

Vanishing function and Manipulate

Within Manipulate, I want to vanish certain controls if other controls satisfy a specific condition. The simplest case is to consider two checkboxes, ...
2
votes
0answers
53 views

Interactive Graph Construction

I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges. I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
2
votes
0answers
52 views

Moving a circle on a function

I'm trying to write a code that moves a circle on the graph of a specific function, but I can't find the error in my code. I added values to both coordinates, but the Manipulate fails to count the ...
2
votes
1answer
39 views

Assign variable array as function input and generate slider inputs for Manipulate

New to Mathematica. I want to be able to input some parameters, do some calculations, and end up with some output in a functional form such as: ...
2
votes
1answer
69 views

Why does the right side of frame keep flashing?

What does this flashing mean? I found at the same time Mathematica was consuming a lot of CPU power. 1st input ...
0
votes
0answers
52 views

How to animate my data?

I would like to point out that I only have basic experience with Mathematica. If this is a dumb question, I apologize in advance. Anyways, I am trying to make a density plot of an interpolation of ...
0
votes
0answers
48 views

Monte carlo sampling inside manipulate

I have rate function which depends on some parameters. From this function I want to create Monte Carlo sampling. I put this two things together in Manipulate, Monte ...
1
vote
1answer
68 views

Table of Dynamic Disks

I'm trying to create a dynamic interface to generate disks depending on 3 parameters : x-coordinate, y-coordinate and radius. The disks are generated as soon as the "export" button is pressed. I'm ...
0
votes
1answer
35 views

Graphics`Mesh`FindIntersections failed in Piecewise

Having no idea of why there are intersections plotted. ...
7
votes
2answers
144 views

Easily limit list length without getting error if list is empty?

I often need to constrain the length of a list when previewing a list, either in Manipulate or for getting a better sense of the output. Without it, the output may ...
5
votes
1answer
71 views

How to label parameters in Manipulate

How do I label the "2" and "3" so they show "square" and "cubed" in Manipulate controls? The following is my code: ...
2
votes
2answers
79 views

How to set a timer (countdown) in Manipulate what stops it running?

I have a Manipulate function with 2d slider which I can play with some curves. I consider this as a game (gamification in physics). I want to set a timer so when it countdown to zero then the game ...
1
vote
1answer
50 views

Table of Variables within Manipulate

Given a certain number n, I want to define n controls within Manipulate with the correct ...
3
votes
1answer
59 views

Automatically generating and labelling controls in Manipulate

Consider the following code ...
2
votes
1answer
54 views
2
votes
1answer
28 views

Placing two columns of Checkboxbar in Manipulate

I wish to place two CheckboxBar columns in a Manipulate; the first column would be the branch CheckboxBar and the other column, the phase checkboxBar in the code below. However Column and Grid do not ...
2
votes
1answer
60 views

Add a button to show properties inside a graph

I would like to draw the graph of $f(x)=x^{3}-x+2$ next to two buttons named: "Property1" and "Property2" in which when I press "Property1" it shows "f'(1) is positive", while for "Property2" it shows ...
1
vote
1answer
158 views

Move from the rotating frame of reference to the lab frame for a periodic function

I have a plot in the rotating frame of reference which moves with some constant rate, S. I want to convert this back into the lab frame by using some substitution of the form xAxisPositionLab = ...
1
vote
1answer
42 views

Inactivate Controls within Manipulate

Given a certain Control object (checkbox, for example) within a Manipulate environment, my goal is to define another control ...
4
votes
1answer
86 views

Reduce quality of an imported MeshRegion

Importing STL files using Import results in a MeshRegion composed by the triangulation of the original file, and a similar ...
5
votes
7answers
872 views

Generating list with short code

I need to get this list {1,0,2,1,3,2,4,3,5,4,6,5,7,6,8,7,9,8} with a very small code (< 30 characters) using Table and List functions. On each step, either it - subtracts 1 or - adds 2 I ...
0
votes
0answers
17 views

How to show two (or more) plots, but only evaluate one in Manipulate? [duplicate]

I have a lot of spectral data in .csv format and I need to assign each spectral line to the respective sinusoid. The general idea was to load the dataset in Mathematica, ListPlot the data and then use ...
1
vote
2answers
59 views

How do I overlay two different 3d plots in manipulate?

I have two different 3D Plots that I what to be overlayed and manipulated at the same time. Specifically: ...
0
votes
0answers
39 views

Why won't my PlotRange change?

I'm trying to expand the x-axis, but it won't change: ...
0
votes
0answers
48 views

Problem with animation

I am trying to animate an elastic collision and i don't how to code to describe the motion after the impact. Here's a piece of code: ...
0
votes
0answers
42 views

how to speed up manipulate and contourplot

I know that ListAnimate perform well. But if we have parameters in the formula. For example: ...
2
votes
1answer
44 views

Why won't my graph change?

I'm trying to "animate" the change of distance traveled with respect to time. Here's a piece of code: ...
3
votes
1answer
89 views

Epilog error in new version

I am able to run the following code in earlier versions and get what I want but version 12 gives an error message stating that Coordinates should be a pair of numbers, or a Scaled or Offset form. <...
1
vote
1answer
58 views

Why is there a red dot on the right of my “Time” slider?

Here is my code ...
4
votes
3answers
60 views

Manipulate two graphs with one parameter

This question is related to a previous question Create a slider to illustrate Fubini theorem. Thank to the help of @kglr, now I can create sliders to control the slice. ...
4
votes
1answer
67 views

Manipulate control with trackingfunction under autorun

I'm writing a demonstration that has complicated inter-dependencies among controls that can be time-consuming to evaluate. It's working well, except that it breaks when I try to use autorun. I think ...
12
votes
6answers
1k views

How to plot a bicycle with square wheels

I want to draw a bicycle with square wheels similar to this picture, but I can't plot the trajectory along the curve. enter link description here ...
2
votes
1answer
103 views

how can draw a scatter plot with a regression line across regions using Manipulate[…]

I have the following code: ...
5
votes
2answers
107 views

Multiple animations in the same Notebook cause lag

I am using Mathematica to simulate a simple pendulum. I used the Animate command to create an animation of the pendulum, which runs smootly. But when i run any other Manipulate, Animate or ListAnimate ...
1
vote
1answer
64 views

Defining functions in a CDF and Manipulate [closed]

I want to deploy an interactive CDF that may depend on several functions. How do I define those functions? I'm using Manipulate, I defined the function inside it ...
1
vote
0answers
38 views

Scattering propagating wave on potential using Manipulate and ListPlot

I have written the following code: ...
3
votes
1answer
42 views

Manipulate ListPlot a matrix [closed]

i am tring to plot a propagating wave function, but the instead of function i have points. so i have a n*n matrix (TTpsi) that i want to plot each row separately. The wave is "propagating" when the ...
-2
votes
2answers
90 views

Manipulate NDsolve 1D-reaction diffusion equation

I want to solve the following 1D-reaction diffusion equation: $$\frac{\partial}{\partial t}u(t,x)=\alpha\,\frac{\partial^{2}}{\partial x^{2}}u(t,x)+a\,u(t,x)$$ $$u(t,0)=0\,\,\,\,\,\text{et}\,\,\,\,\,u(...
1
vote
1answer
39 views

Aligning Conditional Controls in Manipulate

Consider the following code ...
2
votes
0answers
38 views

Exporting Manipulate objects as .mov without UI controls [duplicate]

For a video project I am using Mathematica to create graphic mathematical visuals. However, I can't quite find the necessary setting in order to get a good looking image. I am using ...
4
votes
2answers
71 views

Manipulate lists as function arguments

I am trying to write a Demonstration, which I believe means I must write it as a Manipulate, not a DynamicModule. My question is essentially the same as "Dynamic lists as function arguments", but I ...
1
vote
1answer
74 views

Dynamic Delimiter in Manipulate

Consider the following ...

1
2 3 4 5
32