Monitor and Dynamic give the possibility to check the value of one variable in a program, but is it possible to monitor the values of two variables at the same time?

  • 1
    $\begingroup$ You can use something like Dynamic@{a,b,c,d} to see the values of a,b,c and d $\endgroup$ – Rom38 Oct 9 '18 at 9:54

Just include both variables. For example:

Monitor[Table[Pause[.1]; i + j, {i, 5}, {j, 5}], {i, j}]


enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.