title: Is it possible to track changes to a variable in MATLAB?
body: <p>Say you have a recursive function that changes part of a global variable.</p>
  
  <p>Eg. Global variable is a 3D array from 1 to 20 (i.e <code>(:,:,20)</code>, and in one recursion <code>(:,:,3)</code> and <code>(:,:,5)</code> are changed, and in the next recursion <code>(:,:,7)</code> and <code>(:,:,8)</code> are changed. Is it possible to see when each value for one of the elements is created, so see that in the first recursion the 3rd and 5th element were assigned a value, and in the second recursion the 7th and 8th were?</p>