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 (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 1998/10/09 22:10:47 $

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
