spm_clf.m 930 B

1234567891011121314151617181920212223242526272829
  1. function spm_clf(F)
  2. % Clear specified figure of objects with visible handles
  3. % FORMAT spm_clf(F)
  4. % F - Figure number, or 'Tag' string of figure(s) to clear
  5. %__________________________________________________________________________
  6. %
  7. % Clears the specified figure, deleting all objects with visible
  8. % handles ('HandleVisibility'=='on').
  9. %
  10. % If the current window is 'Tag'ged interactive, then the figures name
  11. % is cleared and the pointer reset.
  12. %
  13. % F Defaults to the current figure, if there is one.
  14. %
  15. % This is just a gateway to spm_figure('Clear',F).
  16. %__________________________________________________________________________
  17. % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
  18. % Andrew Holmes
  19. % $Id: spm_clf.m 3899 2010-05-25 15:36:40Z guillaume $
  20. %-Call spm_figure
  21. %--------------------------------------------------------------------------
  22. if nargin==0
  23. spm_figure('Clear')
  24. else
  25. spm_figure('Clear',F)
  26. end