Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'using Sequence in Manipulate' topicStudent Support Forum > General > Archives > "using Sequence in Manipulate"

Next Comment >Help | Reply To Topic
Author Comment/Response
Greg Colbourn
10/16/08 1:19pm

Hi,

I want to create

Manipulate[

list = {s1, s2, s3};
data = Table[If[list[[i]], 1], {i, 3}],

{s1, {True, False}}, {s2, {True, False}}, {s3, {True, False}}]

but using Sequence instead of writing out s1, s2 s3 etc.

I would've thought that

Sequence[Table[{Symbol["s" <> ToString[i]], {True, False}}, {i, 3}]]

would work in place of

{s1, {True, False}}, {s2, {True, False}}, {s3, {True, False}

but it doesn't!

Please can anyone help?

URL: ,

Subject (listing for 'using Sequence in Manipulate')
Author Date Posted
using Sequence in Manipulate Greg Colbourn 10/16/08 1:19pm
Re: using Sequence in Manipulate yehuda ben-s... 10/22/08 1:00pm
Re: using Sequence in Manipulate Greg Colbourn 10/28/08 12:53pm
Next Comment >Help | Reply To Topic