Timeline for Differentiate values inside Table using Dynamic
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 1, 2017 at 23:55 | comment | added | Karsten7 |
@NicholasG Or use ToString[Unevaluated@var[j]] instead.
|
|
Apr 1, 2017 at 23:53 | comment | added | Karsten7 |
@NicholasG Presumably because it already has a value. Evaluate Clear[var] and then your input again.
|
|
Apr 1, 2017 at 23:51 | comment | added | Nicholas G |
Why does the variable name get substituted by its value when I reevaluate this? TableForm[ Table[{"Variable " <> ToString[var[j]], With[{j = j}, SetterBar[ Dynamic@var[j], {0 -> "liberal", 1 -> "conservative", 2 -> "ignore"}]]}, {j, 5}]]
|
|
Apr 1, 2017 at 23:37 | comment | added | Karsten7 | @NicholasG Scoping Constructs | |
Apr 1, 2017 at 23:36 | comment | added | Karsten7 |
@NicholasG "Table effectively uses Block to localize values or variables." [Table ]
|
|
Apr 1, 2017 at 23:31 | comment | added | Nicholas G | Fabulous, many thanks. Could you please explain Ma's scoping principles? Is there a logic of which commands prevent the evaluation of their contents and which do not? | |
Apr 1, 2017 at 23:29 | vote | accept | Nicholas G | ||
Apr 1, 2017 at 23:20 | history | answered | Karsten7 | CC BY-SA 3.0 |