Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10152
| From | esetlzn <esetlzn@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: problem with Manipulate |
| Date | 2012-05-19 09:51 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jp7qef$qj3$1@smc.vnet.net> (permalink) |
| References | <jp54ri$gq0$1@smc.vnet.net> |
于 12-5-18 下午5:30, Physics is Everything....Almost 写道:
> Why does Manipulate[ Plot[Sin[x (1+ a x)], {x,0,6} ], (a,0,2} ] work....
> BUT..... the following doesn't....
> tmp = Plot[Sin[x (1+ a x)], {x,0,6} ]
> Manipulate[ tmp , (a,0,2}]
> I checked Attributes of Manipulate and saw HoldAll......but Hold what??
> thanks.....Jerry Blimbaum
>
Hi, no definition of the "a" in the "tmp" results in the problem.
My solution is as below:
f[a_] := Plot[Sin[x (1 + a x)], {x, 0, 6}];
Manipulate[f[a], {a, 0, 2}]
enjoy!
--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
problem with Manipulate "Physics is Everything....Almost" <fizzycist@knology.net> - 2012-05-18 09:30 +0000 Re: problem with Manipulate Dushan Mitrovich <dushanm@nnips.net> - 2012-05-19 09:49 +0000 Re: problem with Manipulate esetlzn <esetlzn@gmail.com> - 2012-05-19 09:51 +0000 Re: problem with Manipulate DC <b.gatessucks@gmail.com> - 2012-05-19 09:52 +0000 Re: problem with Manipulate Peter Breitfeld <phbrf@t-online.de> - 2012-05-20 06:35 +0000
csiph-web