For Programmers: Free Programming Magazines  


Home > Archive > Mathematica > September 2007 > Re: ManipulateCreateDocumentBUG ???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: ManipulateCreateDocumentBUG ???
roby.nowak@gmail.com

2007-09-22, 4:27 am

hi all,
and thx for the tips

i realized that the problem is the HoldAll attribute of Manipulate.
But it is not solveved ba wrapping Evaluate arround k*s
for this simple case it would work of course, but the example
presented is the stripped down to the point version of a complex one.
the real problem (a bitimage convolution demo with interactive
modifyed kernel) does not allow to Evaluate the parameters to
Manipulate because the paramters are depending on the slider variable
s which in turn is not defined befor entering Manipulate.
What I needed was (Evaluate[k]*s) as parameter to Manipulate but this
seems not to overrule the HoldAll of Manipulate in contrast to
(Evaluate[k*s]) which is not appropriate for my problem.

the best solution so far i have is the following:

A := Module[{k}, kouter = 1;
kouter // Function[{k},
CreateDocument@Manipulate[k*s, {{s, 1}, 1, 10}]]];
A
A

regards robert


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com