Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16323 > unrolled thread
| Started by | Itai Seggev <itais@wolfram.com> |
|---|---|
| First post | 2013-12-06 07:10 +0000 |
| Last post | 2013-12-06 07:10 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Manipulate and Module Itai Seggev <itais@wolfram.com> - 2013-12-06 07:10 +0000
| From | Itai Seggev <itais@wolfram.com> |
|---|---|
| Date | 2013-12-06 07:10 +0000 |
| Subject | Re: Manipulate and Module |
| Message-ID | <l7rt8k$o50$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web