Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16323
| From | Itai Seggev <itais@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Manipulate and Module |
| Date | 2013-12-06 07:10 +0000 |
| Message-ID | <l7rt8k$o50$1@smc.vnet.net> (permalink) |
| References | <20131205080530.0CCA06A27@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Thu, Dec 05, 2013 at 03:05:30AM -0500, Sergio Miguel Terrazas Porras wrote:
> Hello folks!
>
> I had been using Module for a while, to avoid conflcts among variables in several functions used in the same notebook.
>
> When Manipulare came around, I modified many of my notebooks, putting a Manipulate inside the Module, something like this:
>
> function[var1_,var2_,...]:=Module[{internal list of vars}, Manipulate[something,{var,vinit,vfinal}] ]
>
> But once in a while I encountered problems when opening a notebook.
>
> Something like Show[can not combine graph1 with graph2] etc.
>
> Now, the other way woulb be to interchange Module and Manipulate, putting the Module inside the Manipulate.
>
> What are the main differences between these two aproaches, and which one is the preffered one?
Without seeing the code, it is difficult to say. But I doubt that it is
related to your issues. Manipulate must have access to the appropriate
definitions in order to work, which if you're opening it in a fresh session it
might not. I would guess that adding the option SaveDefinitions->True to your
Manipulate will solve your problems.
--
Itai Seggev
Mathematica Algorithms R&D
217-398-0700
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Manipulate and Module Itai Seggev <itais@wolfram.com> - 2013-12-06 07:10 +0000
csiph-web