Guest User

Untitled

a guest
Apr 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. myVariables={"var1","var2"}
  2. Map[Symbol[#]&,myVariables]
  3. Manipulate[Map[Symbol[#]&,myVariables],Grid[{{Control[{var1,0,1}],Control[{var2,0,1}]}}]]
  4. Map[Control[{Symbol[#],0,1}]&,myVariables]
  5. Manipulate[Map[Symbol[#]&,myVariables],Grid[{Map[Control[{Symbol[#],0,1}]&, myVariables]}]]
  6.  
  7. vList = {var1, var2};
  8.  
  9. With[{v=vList, controls = Grid[{Control[{#, 0, 1}]& /@ vList}]},
  10. Manipulate[v, controls]
  11. ]
Add Comment
Please, Sign In to add comment