Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 19692

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

5 votes
2 answers
493 views

Can the increment in Manipulate, Table, Range, etc. be subject to an If statement?

f[x_] = Piecewise[{{-x, x < 0}, {x^2, x >= 0}}]; g[x_] = Piecewise[{{-1, x < 0}, {2 x, x > 0}}]; Manipulate[ Plot[{f[x], f[c] + g[c] (x - c)}, {x, -3, 3}, Epilog -> Point[{c,f[c]}]], {c, Range[-2, 2, …
user170231's user avatar
  • 1,671
1 vote
0 answers
53 views

Can Manipulate parameters be hidden with an If statement? [duplicate]

I'm making a demonstration with the following code: a = Pi/4; b = 3 Pi/2; f[x_, n_] = Piecewise[{{x + Sin[x] + n, x >= Pi}, {x + Sin[x], x < Pi}}]; Manipulate[ Plot[ f[x, n], {x, -Pi, 2 Pi …
user170231's user avatar
  • 1,671
3 votes
1 answer
352 views

How can I get a manipulated parameter to show up with text next to it?

d[e_]=e/2; Manipulate[ Row[{d[e], Plot[2x-1, {x,-1,4}]}], {c,0,3}, {e,0,5}, SaveDefinitions->True] I've omitted the part of the code that contains c (it's a bunch of lines added via Epilog … I've changed the code as follows: d[e_]=e/2; Manipulate[ Row[ {Plot[2x-1, {x,-1,4}], Column[{{"e=",e}, {"d=",e/2}, {"c=",c}}]} ], {c,0,3}, {e,0,5}, SaveDefinitions …
user170231's user avatar
  • 1,671
5 votes
1 answer
428 views

Manipulating 2D graphics along the surface of a 3D sphere according to their centroids' lati...

Is it possible to manipulate the hexagon's position on the sphere by means of adjusting the hexagon-on-sphere's centroid's coordinates? Would it also be possible to rotate the hexagon? … Given a hexagon like Graphics[Polygon[CirclePoints[6]]] I can translate and rotate it in a plane using Manipulate[ Graphics[ Rotate[Polygon[CirclePoints[6] + Table[{x, y}, 6]], t] ] …
user170231's user avatar
  • 1,671
1 vote
2 answers
93 views

Specifying the PlotRange according to a desired center

So, on top of centering the plot, I'd like to use Manipulate give the option of adjusting this zooming window, but I'm not sure how to set up the PlotRange to begin with. …
user170231's user avatar
  • 1,671