Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我要这个:
arr[[n]] = b;
仅当b更改时自动重新评估。
我该怎么做?
你可能想要
myArray={{1,2},{3,Dynamic[b]}};
通过评估myArray 和放置来检查,例如Slider[Dynamic[b],{0,10}]。
myArray
Slider[Dynamic[b],{0,10}]
您可以Dynamic稍后设置该部分,即myArray[[2,2]]=Dynamic[b]也可以。
Dynamic
myArray[[2,2]]=Dynamic[b]