I want to have a dynamic number of manipulators.
n = 4; c = 4;
With[{
B_controls = Sequence @@
Table[ {{ B[i, j], 0}, 0, 1, 0.1}, {i, 1, n}, {j, 1, c} ]
},
Manipulate[
Whatever I want to do, and then:
Control @ B_controls
]
But I get the following error:
Manipulate::vsform: Manipulate argument {{{B[1,1],1},0,1,0.1},{{B[2,1],1},0,1,0.1}} does not have the correct form for a variable specification.
Manipulate::vsform: Manipulate argument {{{B[1,2],1},0,1,0.1},{{B[2,2],1},0,1,0.1}} does not have the correct form for a variable specification.
It seems like I'd have to do a simple array of controls, but I'd like to know if I can do it in this way (or if there's a better way).
Thanks!
SLIDER2D
. I think your title should be "Manipulating the number of controls" or something like that. Clearer. Easier for people to find later. $\endgroup$