reload.m 405 B

123456789101112
  1. function this = reload(this)
  2. % Reload the file from disk
  3. % FORMAT this = reload(this)
  4. %
  5. % Useful to update the object e.g. after running a batch.
  6. %__________________________________________________________________________
  7. % Copyright (C) 2013 Wellcome Trust Centre for Neuroimaging
  8. % Vladimir Litvak
  9. % $Id: reload.m 5385 2013-04-03 16:24:05Z vladimir $
  10. this = meeg(getfield(load(fullfile(this)), 'D'));