function isF = isfigure( h ) %ISFIGURE True for Figure handles. % ISFIGURE(H) returns an array that contains 1's where the elements % of H are valid Figure handles and 0's where they are not. % Copyright 1984-2002 The MathWorks, Inc. % $Revision: 1.1 $ $Date: 2006/10/05 17:00:15 $ error( nargchk(1,1,nargin) ) isF = ishghandle(h); for i = 1:length(h(:)) if isF(i) isF(i) = strcmp( get(h(i),'type'), 'figure' ); end end