title: Save currently running script in Matlab
body: <p>Is there a way of saving the currently running script in Matlab?  I have a script which automatically takes a backup of a set of scripts although if I have changed the current script then the saved  version will be out of date. </p>
  
  <p>Perhaps its possible to call some java?</p>
  
  <p>Thanks</p>