from
include
by Jeffrey
Reset the figure to close by traditional means, i.e. 'close'
|
| include(varargin)
|
%
% include(varargin)
%
% Function includes the figure handles that have been excluded so the user
% can close the figure with traditional means.
%
% Uses: include 1 7:10
% include([1:2:10])
%
% See also: EXCLUDE
%
% Jeffrey A Ballard, July 23, 2009
% ballard@arlut.utexas.edu
function include(varargin)
if nargin<1
return
end
for ii=1:length(varargin)
if ischar(varargin{ii})
hfigs = eval(varargin{ii});
else
hfigs = varargin{ii};
end
for jj=1:length(hfigs)
temp = getappdata(hfigs(jj),'CloseFunction');
if isempty(temp);temp = 'closereq';end
set(hfigs(jj),'CloseRequestFcn',temp)
end
end
|
|
Contact us at files@mathworks.com