| 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: , |
|