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
93 views

Manipulate Plot with Find Root Parameter

I would like to plot the function G(r; x') as a function of r, but with parameter x'. x' is the solution to F(x';p) = 0 where p is a parameter I can control. Unfortunately F is messy and I must use ...
NavStoke's user avatar
0 votes
1 answer
64 views

How to include Manipulate in fitting?

I'm trying to fit three differential equations to two data sets, using the code developed by @Cesareo, as follows: ...
A novice's user avatar
  • 317
3 votes
2 answers
67 views

Manipulate parameters with parameter ranges dependent on other parameters

I've reduced some of my code to the code here Manipulate[ (*output here here*) {j, 1, 40, 1}, {k, 1, Dynamic[j], 1}, ] The problem I'd like to fix is that if I set ...
Daniel's user avatar
  • 115
5 votes
1 answer
261 views

Rotation Slider Control

Mathematica seems to support no "rotation slider" Control which might be used, for instance, in setting an angular direction ($0 \leq \theta \leq 2 \pi$) on a plane. I couldn't find one in ...
David G. Stork's user avatar
1 vote
1 answer
125 views

How to rotate a 2-body system about various independent axes with body-fixed pivot points/rotation origins?

I am trying to simulate a jointed two-body system on Mathematica, consisting of these components: "Beam" and "Plate". I am constraining the system such that the beam is always ...
Richard Casey's user avatar
2 votes
1 answer
105 views

How to visualise a rotated cuboid as an output of its rotation matrix and original dimensions, using Graphics3D?

I'm new to Mathematica, and I'm trying to figure out how to visualise a rotated cuboid as an output of its rotation matrix and original dimensions using Graphics3D. ...
Richard Casey's user avatar
1 vote
1 answer
32 views

Interactive input of integer-coordinate 2D points

I'd like code to allow interactive input of a chain of 2D points, which are saved in some global variable. And in addition, I would like to constrain the coordinates to be integers. The code below is ...
Joseph O'Rourke's user avatar
3 votes
2 answers
131 views

Limiting sliders dynamically

My goal is to implement the three things below. (i) Number of white balls(w ) and red balls(r) are constrained to be 2 ~ 29. (ii)Total number(n) of balls is w+r and it shoud not exceed 30. (iii)...
Soon's user avatar
  • 646
1 vote
0 answers
30 views

Change specific elements of a list [closed]

I have currently looking to change specific elements of a list. I saw that you can apply a fonction to an element if you know it's position as shown in this question : Apply function to specific ...
Doodger24's user avatar
2 votes
1 answer
127 views

Speeding a Manipulate illustrating convolution

I'd like to illustrate the mathematical process of convolution ($f(x) \star g(x)$) with an interactive Manipulate, but the evaluation is far too slow for a class ...
David G. Stork's user avatar
1 vote
0 answers
40 views

Simplify argument of Logs

I have the following expression ...
BabaYaga's user avatar
  • 1,746
3 votes
1 answer
138 views

Extending an Animated Vector Flow from Two to Three Dimensions

I found some code for animating a two-dimensional vector flow on stackexchange. Unfortunately, I can't find the original post so I can't credit the author. I have modified the code for my purposes ...
B flat's user avatar
  • 5,513
3 votes
1 answer
96 views

Manipulate breaks when using the RegionFunction option?

For some reason, the code below breaks when using the regionfunction option with Manipulate. Am I missing something or is this a bug? ...
B flat's user avatar
  • 5,513
0 votes
1 answer
56 views

Pointwise convergence of Fourier series: partial sum animation not rendering plot

I'm new to Mathematica (13.3) and I'm attempting to demonstrate the pointwise convergence of the Fourier series for the square wave function f in particular, by showing via Animate/Manipulate that as ...
Pascal Tchakouté's user avatar
1 vote
1 answer
112 views

Make `Manipulate` work despite `Clear["Global`*"]`

What is the correct way to stop all my Manipulate cells from breaking every time I issue ClearAll["Global`*"] command? ...
Yaroslav Bulatov's user avatar
0 votes
1 answer
49 views

Using Manipulate On Parametric Plots

I was trying to animate a state space plot to change with respect to some sliders and here is what I have tried so far. Right now I am just getting a bunch of errors and I'm not sure how to fix fix it:...
Craftyleosteel's user avatar
5 votes
1 answer
74 views

How to most responsively manipulate time intervals in ParametricPlot?

I often met with the case where I want to show the past trajectory of a object. A way of demonstrating this is to plot the trajectory using ParametricPlot, and then ...
Wjx's user avatar
  • 9,558
0 votes
2 answers
83 views

Appending Random Number to Existing List

My goal is to append random number to list like below.The problem is whenever I try appending a random number, the previously created numbers are changed which I don't know why. How to add a random ...
Soon's user avatar
  • 646
0 votes
1 answer
88 views

How to make a 2D plot using Manipulate with slider bar?

In the data below, I solved a heat transfer equation which gave me the Temperature for a given position and time. I want to make a 2D plot as a function of Temperature and position with the ...
Mule's user avatar
  • 43
1 vote
2 answers
55 views

How to stop Manipulate with PolarPlot from resizing PolarAxes?

I'm having some difficulty figuring out why the following code resizes the polar axes once move the slider past a certain number. ...
B flat's user avatar
  • 5,513
0 votes
2 answers
82 views

Any idea why my Manipulate[ParametricPlot] isn't showing anything [duplicate]

[ As you can see on the attached screenshots I tried to make it work multiple times, but it shows nothing. Any idea?
Ákos Szegedi's user avatar
0 votes
0 answers
64 views

Manipulate doesn't work correctly

Suddenly, Manipulate has stopped working in a Notebook that until recently worked perfectly. I want to animate a plot of rotations of a cube. I define the rotation matrices ...
Antonio Gonzalez's user avatar
0 votes
1 answer
53 views

TrackingFunction does not work when more than one Locator in Manipulator

TrackingFunction example Manipulate[ Graphics[Circle[], PlotRange -> 2], {{pt, {0, 0}}, Locator, TrackingFunction -> (pt = #/Max[Norm[#], 1]; &)}] ...
eason's user avatar
  • 197
0 votes
1 answer
74 views

Plotting Using Nesting Manipulate

My goal is to plot the number of locatable points and their average point as fig2. The number of points is set by the slider and they are locatable. My code with nesting Manipulate is as shown below, ...
Soon's user avatar
  • 646
3 votes
1 answer
75 views

Locating points by selecting points

My goal is to locate points without using slide bars then average point is dynamically plotted. Could I select and locate a point directly without using the slider bar?(I could locate points using ...
Soon's user avatar
  • 646
2 votes
0 answers
34 views

TrackingFunction not working with LocatorPane in Manipulate

I want to use TrackingFunction with LocatorPane, but when LocatorPane is used, TrackingFunction does not work. ...
pmzhu's user avatar
  • 95
4 votes
1 answer
76 views

Manipulate with pre-assigned number of parameter

My goal is to draw dots whose positions can be adjusted. I could draw a fixed number of dots, say 2 and 5, like the code below. If the user sets the number of dots, how do I create dots and sliders ...
Soon's user avatar
  • 646
0 votes
0 answers
70 views

Manipulate through Graphics3D

Inspired in this answer. I am attempting to run a Manipulate through a 3d Graphic. This is the code that I am trying: ...
Weierstraß Ramirez's user avatar
7 votes
5 answers
684 views

How can I make Manipulate faster?

I'm happy with the result of the graph I made, but it runs very slowly. How can I make it lighter and faster? ...
Vaggelis Dr77's user avatar
1 vote
0 answers
75 views

Problem with the Manipulate command

I am trying to upload a notebook with the following code to my blog, but every time I upload it, the "manipulate" code does not give anything. Do I have to change anything? ...
Athanasios Paraskevopoulos's user avatar
2 votes
1 answer
42 views

Manipulate slider from predefined array

This is a minimal example of what I want to make work: ...
PepeToro's user avatar
  • 133
3 votes
2 answers
109 views

Correctly localize variables in Manipulate

I’m doing a little project for Wolfram Demonstration. When I create snapshots, i.e. paste several times Output cell of Manipulate, all of them updates simultaneously, if any control is changed. I ...
lesobrod's user avatar
  • 1,501
3 votes
3 answers
181 views

How to launch a Manipulate (or a function that uses Manipulate) via a Button

(Mathematica v13.3) This seems to do nothing when you click the resulting Button: Button["Launch", Manipulate[pt, {pt, {-1, -1}, {1, 1}}]] Setting ...
Webel IT Australia - upvoter's user avatar
1 vote
1 answer
83 views

Unwanted reevaluation in Manipulate with RandomPointConfiguration

Here is a simple illustration of a problem I am encountering. I want to use RandomPointConfiguration inside Manipulate, but it ...
Russ Lyons's user avatar
3 votes
1 answer
74 views

how to compute linked Manipulates with a more efficient code

I have several Manipulate codes as parts of a large block diagonal model. Each diagonal model produces outputs which are used in the second diagonal model, outputs ...
Tugrul Temel's user avatar
  • 6,184
1 vote
1 answer
44 views

How to get Manipulate to work with FourierSeries Plot

I have been trying to use Manipulate in the following expression : ...
Confused's user avatar
  • 113
0 votes
1 answer
124 views

How to generate a bubble chart of a directed graph with several properties using Manipulate[.]

This code: ...
Tugrul Temel's user avatar
  • 6,184
0 votes
2 answers
84 views

How to add info text inside a manipulate plot, fixed to the frame?

I would like to show some dynamical information on a plot, inside a Manipulate box. The MWE below show the info moving with the grid lines. I need that info to stay fixed permanently in view, ...
Cham's user avatar
  • 3,989
2 votes
1 answer
80 views

How to change the plot style of several curves, in this manipulate box?

I'm sure this is very easy, but I'm currently unable to make it to work properly. I just need to give different colors and style to the three curves shown in this manipulate box: ...
Cham's user avatar
  • 3,989
1 vote
3 answers
119 views

Combine Dynamic[] and Manipulate[]

I'd like combine Dynamic and Manipulate, cause Manipulate required for Wolfram ...
lesobrod's user avatar
  • 1,501
2 votes
1 answer
80 views

Differentiating unit tangent vector does not work

I am new to Mathematica and I want to visualize the tangent and normal vector field of a particular embedding of the circle. In my code it is [CapitalGamma][s]. When I put the unit tangent vector (uT[...
Ama's user avatar
  • 35
1 vote
1 answer
110 views

Finding the maximum of a non-linear function symbolically

I have the function $$f(x,\alpha) = x^\alpha - \frac{x^2}{2}$$ where $x>0$ is the main variable of interest and $\alpha \in (0,1)$ is the parameter of curvature: ...
Gorkem Aksaray's user avatar
0 votes
0 answers
87 views

How to compute the infinite continued fraction?

I am reading the article "Eigenvalues and eigenfunctions of spin-weighted spheroidal harmonics in four and higher dimensions", which is on https://arxiv.org/abs/gr-qc/0511111. I want to ...
amon xu's user avatar
  • 31
1 vote
1 answer
64 views

Why doesn't Sequence@@ work inside Manipulate[]?

I'm trying to use Manipulate[] and I need to have a non-fixed amount of sliders. I tried writing something like: ...
Nuno Catalão's user avatar
0 votes
1 answer
68 views

Using Manipulate for initial guess to nonlinear fitt, feed the result back to Manipulate (and repeat) for a general model with indexed parameters

I have been trying to put toghether a visual method to help fit experimental data with peaks. I have stumbled upon this answer which is very similar to where I got. But it is not sufficiently general ...
atapaka's user avatar
  • 3,874
1 vote
2 answers
59 views

How to extract manipulated indexed variables from Manipulate

I am struggling with getting values of variables that are manipulated with Manipulate: The code: ...
atapaka's user avatar
  • 3,874
0 votes
1 answer
157 views

How to compute the continued fraction to a generic step by Mathematica?

I am reading the article "Eigenvalues and eigenfunctions of spin-weighted spheroidal harmonics in four and higher dimensions", which is on https://arxiv.org/abs/gr-qc/0511111. I want to ...
amon xu's user avatar
  • 31
0 votes
0 answers
49 views

How can I suppress the multiple redrawing of Manipulate charts every time, on every evaluation after editing code....?

How can I suppress the multiple redrawing of Manipulate charts every time, on every evaluation after editing code.... After coding a few lines, and evaluating I end up having many many Manipulate ...
Lea Rebanks's user avatar
0 votes
0 answers
50 views

how to use subscripted variable such as a_i as the control of Manipulate?

I'd like to define a series of variables called $l_1$,$l_2$, etc., in Mathematica, using the "ctrl+_" shortcut. Moreover, I want to use these variables as the controls of a Manipulate[] ...
larry's user avatar
  • 715
10 votes
2 answers
309 views

Is it possible to have a plot inside a manipulate with parametric controls?

As the title suggests, I am trying to use a Plot inside a Manipulate which has its controls defined programmatically. ...
RoberRM's user avatar
  • 319

1
2 3 4 5
42