title: print variable-name in Matlab
body: <p>I have a function in Matlab that has some variables in it.  I need to print out the variable_names (in case of an exception etc.).  I am aware of <code>inputname</code> function but it works for input_arguments only.</p>
  
  <pre><code>mat = [ 1 2 ; 3 4 ] ;
  
  % disp(['Error in var: ' ??(a)])
  % desired ouput: Error in var: mat     (and NOT 1 2 ; 3 4!)
  </code></pre>
  
  <p>Thanks!</p>