Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4594 > unrolled thread

Re: Execute commands with CDF player

Started byJoerg Roesgen <biophys.hershey@me.com>
First post2011-08-26 09:34 +0000
Last post2011-08-26 09:34 +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.


Contents

  Re: Execute commands with CDF player Joerg Roesgen <biophys.hershey@me.com> - 2011-08-26 09:34 +0000

#4594 — Re: Execute commands with CDF player

FromJoerg Roesgen <biophys.hershey@me.com>
Date2011-08-26 09:34 +0000
SubjectRe: Execute commands with CDF player
Message-ID<j37pc1$4mg$1@smc.vnet.net>
Thanks for the answers!

And actually, now I also found the documentation page where it is explained. 


On Aug 24, 2011, at 4:57 , Heike Gramberg wrote:

> You need to set SaveDefinitions->True to save the definition of f in the output of Manipulate, e.g.
> 
> f[x_, a_] := Sin[a x]
> Manipulate[Plot[f[x, a], {x, 0, 10}], {a, 1, 5}, SaveDefinitions -> True]
> 
> Alternatively, you could use Initialization to define f inside the Manipulate:
> 
> Manipulate[Plot[f[x, a], {x, 0, 10}], {a, 1, 5}, Initialization :> (f[x_, a_] := Sin[a x])]
> 
> Heike.
> 
> On 24 Aug 2011, at 09:14, Joerg Roesgen wrote:
> 
>> Hi,
>> 
>> I am missing something about this CDF player. On the Wolfram website they say it's all so easy. Just take your notebook and save it as a CDF, and all is fine and dandy. But it's not. I made a notebook with one single cell.
>> 
>> 	f[x_, a_] := Sin[a x]
>> 	Manipulate[Plot[f[x, a], {x, 0, 10}], {a, 1, 5}]
>> 
>> All works fine up to here. 
>> 
>> Now, I save it as CDF and open it with the CDF player. Well, but nothing is executable or does anything. I see the two lines of input; and otherwise there is just an empty box displayed from the Manipulate command, but the CDF player does not understand who f[x,a] is.
>> 
>> So, what now?
>> 
>> Thanks,
>> JR
>> 
> 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web