5k 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: ...
474 views

### How to show a time-dependent vector (velocity) with Manipulate? [duplicate]

I have this problem: I want to show the velocity vector Arrow[{pos, pos + vel}] with Manipulate ...
3k views

### Manipulate and ListPlot [duplicate]

I have a $300$ by $2$ matrix called r which its elements depend on parameter g. I would like to plot this matrix and change the <...
3k views

### Manipulate - Plot - Function with Parameters [duplicate]

dear community! How do I make this construction work? ...
1k views

### Manipulate Plot Sliders Not Working [duplicate]

I'm trying to use Manipulate on my function so that I can adjust parameters a, r, and ...
645 views

### Manipulate gives the output as a blank plot, but I'm not sure why [duplicate]

I'm using Mathematica 9 to try to manipulate a 3D plot. My code is: ...
811 views

### Manipulate or animate a Vector Field or VectorPlot [duplicate]

I want to plot a time dependant vector field, and see variation with time, Like this : U = 0.5 + 0.8 x; V = 1.5 + 2.5 Sin[2 Pi t] - 0.8 y; But when I do: <...
136 views

### Replacements in Manipulate [duplicate]

I would like to understand why this is not working: replacement = {a[t] -> r}; Manipulate[Plot[a[t] /. replacement, {r, 0, 1}], {t, 1, 2}] But this does: <...
303 views

### Evaluation in Manipulate [duplicate]

I have an expression assigned to a variable. For example: exp1 = a*x+b Now I would like to plot it using something like this ...
363 views

### Manipulate[Plot[A[X]…, returns no output [duplicate]

Here is my simple code: A[X_] := a*X^2 - b/a^2* X^3; B[X] = A[X]^2; ...
234 views

### Manipulate with dependent variables? [duplicate]

Edit Edit: It works! as @Kuba has written in This answer, the culprit seems to have been the LocalizeVariables option. The fixed code is below. Many thanks! ...
70 views

### Manipulate function [duplicate]

I'm trying to generate this simple graph using the Manipulate function f[x_] := a x + b x^2; Manipulate[Plot[f[x], {x, 0, 1}], {a, 0, 1}, {b, 0, 1}] However, ...
293 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 ...
205 views

### Manipulate the parametric plot of a torus [duplicate]

I have failed to get Manipulate to generate a torus whose scaling functions can be adjusted. I have: ...
277 views

### Manipulating the derivative of (-1)^(x/a)+(-1)^(x/(a+5)) with respect to the parameter a [duplicate]

I'd just like to know if it is possible to use Manipulate for to show how the derivative of an expression such as ...
90 views

### Variable scoping in Manipulate [duplicate]

Here is my attempt to manipulate the value of q for the PDF function. Whenever I use the manipulate function, nothing happens to the output. Can anyone explain why?
111 views

### Simplify graphics [duplicate]

I want to simplify my complicated code write neat and systematic code. I use animate after solving differential equations. It's my Phd code and is very heavy and complicated. I want to simplify my ...
118 views

### Problem with Manipulate after declaring pure function with Hold [duplicate]

I'm trying to illustrate the generation of the conic curves with a plane and a cone surface in ContourPlot3D, when I make a static plane there is no problem, and the intersection curve was generated ...
179 views

### Manipulate plot using solution from Solve [duplicate]

Hi I'm trying to visualize a 2D equation that I have previously solved as I vary a parameter 'b'. First I solve for 'y' in terms of 'x' and 'b', then I intend to use Manipulate. ...
138 views

### Using Manipulate with predefined expressions [duplicate]

EDIT: I believe this is not a duplicate question, because the answers to questions pointed to as similar DO NOT give practical solutions to the problems, at least not for normal Mathematica users like ...
137 views

### Apply solution rules to new functions as parameters [duplicate]

Update: I put an screenshot of how my code and problem look like at the end. Say that Mathematica solved a system of equations and got two answers {{a -> 3, b -> c, d -> 0}, {a -> -3, b -> 0, c -> 1/...
103 views

### Use Manipulate to visualize how roots of a system of equations changes with parameters - SOLVED [duplicate]

I am editing this question, I hope to be able to respect the rules. My goal is to find the roots of a system of 6 nonlinear equations (they are actually more, this is a simplified version). The roots ...
94 views

### Manipulate and global assignments [duplicate]

I've a (perhaps too) basic questions that has been bugging me for a while. Manipulate seems to ignore global assignments. For instance the following does not result in the obvious output one would ...
72 views

### Trying to plot f(x)= xsin(ax) and its derivatives in a single plot but graph shows nothing [duplicate]

The function is f[x] := xsin(ax),the first derivative is f'[x]=axcos(ax) + sin(ax)and third derivative is ...
62 views

### Using expressions in Plot with Manipulate [duplicate]

The following works exactly as advertised: Manipulate[ Plot[5 Cos[Pi t] Sin[Pi x], {x, 0, 2}, PlotRange -> {-5, 5}], {t, 0, 4}] However, if I use an ...
76 views

...
67 views

### Trying to graph a function [duplicate]

I'm trying to graph this function, the plot shows up but has no content any help would be appreciated. ...
79 views

### Scoping problem with Manipulate [duplicate]

Consider the following simple code: f = Sin[a x]; Manipulate[ Plot[f, {x, 0, 10}], {a, 0, 10}] Manipulate takes f to be ...
66 views

### Abridging Lists of Equations within NDSolve, Manipulate [duplicate]

I have a pretty little NDSolve function that I've finally decked out with manipulatable (by sliders) coefficients, which changes the graph in real time. However, I ...
60 views

### Mathematica Manipulate, Plot, Piecewise [duplicate]

I have two functions h2 and v2 that I need to graph using Piecewise and be able to ...
37 views

### Issues with Manipulate and dynamic variables in plotting [duplicate]

I'm trying to make a manipulate that shows a parametric plot of a cycloid with manipulators that affect the shape of the curve. My problem seems to be my scoping of the variable ...
37 views

### Manipulate: does not respond to the function I intend to plot [duplicate]

Please have a look at below. I need to solve two-coupled equations and plot the results h[2] and theta[2]. I am not sure about ...
36 views

### Manipulating PlotRange in ParametricPlot [duplicate]

why does the following code not work? ...
35 views

### Manipulate versus Dynamic [duplicate]

I want to see a dynamic rendering of this surface as a function of the parameter \[Alpha]: ...
28 views

### Manipulate is not working [duplicate]

Manipulate is a fantastic feature of Mathematica. However, I face a weird thing. When I intend to plot height[t], and manipulate ...
27 views

### How to animate two value expression in mathematica [duplicate]

I have an expression which is a function of two variables. How to animate this? m = 200; y = Sin[\[Pi]*x]*Exp[I*m*t] Manipulate[Plot[y, {x, 0, 1}], {t, 0, 10}]
19 views

### Evaluating equation inside Manipulate [duplicate]

How do I fix the following code: A[z_] = B*z^2; Manipulate[FindMinimum[A[z], {z, 1}], {B, 1, 10}] In particular, what is the best way to force substitution of B ...
17 views

### Substitute variable inside manipulate [duplicate]

Consider the following piece of code ...
3k views

### Proper way to handle free variables in manipulate/plot?

It took me a while today to figure out that Manipulate (used with Plot) requires that the variable I'm manipulating be an actual ...
2k views

### How and when to use Evaluate?

A month ago, I used Mathematica to solve my experiment of the Test Technology of Mechanics Engineering. The exeriment is mainly about the Fourier Transform and verify the validity of the theory of ...
2k views

### Manipulate a Show [duplicate]

It takes me a long time to construct the following picture: ...
651 views

### Get value of symbol

ab := {{a, 10, 100}, {b, 0, 10}} Manipulate[a*b, Evaluate[Delete[ab, 0]], Button["SHow", Print[Evaluate[Symbol[ToString[ab[[1]][[1]]]]]]; Print[a, "---", b]]] In ...
288 views

### How to solve and plot large equation with parameters?

I have a very large expression: ...
249 views

### How can I write a Do loop that iterates over N iterators when N is not known a-priori?

For any positive integer $n$ which is not specified a priori, I can make $n$-tuple vector $v$ by v = Array[a, 1, n]. Now, given that $n$ is a positive integer which ...
412 views

### How I can make a menu with different graphs with modifiable parameters?

I want a user friendly window in which to have a menu where you can choose the chart you want to display, in which you can move parameters in order to note the width or height of the chart, but I try ...
281 views

### Modifying a global variable within a Manipulate expression

I am trying to change a variable using Manipulate, like this: ...
74 views

### globals and Manipulate

The question is related to a number of questions that have been asked, but no answer is quite what I want, so I will try again. Suppose that I have a model with a lot of state - to give a stupid ...
200 views

### How can define a set of nested parameters

I would like to know how I to define a function with a nested set of parameters (or whatever you would like to call it). For example, how would I get the following function ...