I have a function that operates on a list of variable-length $n$. I would like to create a Manipulate[] that has $n$ sliders, one for each list element, each considered a separate parameter. The syntax Manipulate[expr,{u,...},{v,...},...]] does not lend itself to this, as it is geared toward a fixed number of parameters known in advance, and referenced by separate variable names. I have started exploring preparing a list of arguments to Manipulate[] and then using Apply[], but this seems tricky and complicated. Anyone come upon this conundrum before?
|
|
|||||
|
|
The Advanced Dynamic Functionality in Mathematica documentation has the following example that looks like what you need.
It builds a list of controllers (
telling Mathematica to whenever the actual value of Also from the Documentation Center, the last example in Manipulate: Neat Examples may be useful:
which gives
|
|||||
|
|
|
Here is a followup to my question, code based on the example provided by kguler.
Note there is no longer any need for
|
||||
|
|
|
This is similar to kguler's solution, but it assumes that there is a more complex updating going on during slider-interaction (namely, both
|
|||
|
|



