-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspm_clf.m
26 lines (25 loc) · 916 Bytes
/
spm_clf.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function spm_clf(F)
% Clear specified figure of objects with visible handles
% FORMAT spm_clf(F)
% F - Figure number, or 'Tag' string of figure(s) to clear
%___________________________________________________________________________
%
% Clears the specified figure, deleting all objects with visible
% handles. ('HandleVisibility'=='on'). This is the same as MatLab5's
% clf, except that the figure can be specified.
%
% If the current window is 'Tag'ged interactive, then the figures name
% is cleared and the pointer reset.
%
% F Defaults to the current figure, if there is one.
%
% This is just a gateway to spm_figure('Clear',F).
%__________________________________________________________________________
% @(#)spm_clf.m 2.1 Andrew Holmes 98/03/23
%-Call spm_figure
%---------------------------------------------------------------------------
if nargin==0
spm_figure('Clear')
else
spm_figure('Clear',F)
end