function result = isappdata(handle, name)
%ISAPPDATA True if application-defined data exists.
%  ISAPPDATA(H, NAME) returns 1 if application-defined data with
%  the specified NAME exists on the object specified by handle H,
%  and returns 0 otherwise.
%
%  See also SETAPPDATA, GETAPPDATA, RMAPPDATA.

%  Damian T. Packer, May 1998
%  Copyright (c) 1984-98 by The MathWorks, Inc.
%  $Revision: 1.2 $  $Date: 1998/07/09 18:21:42 $

if length(handle) ~= 1, error('H must be a single handle.'); end
result = isfield(get(handle, 'ApplicationData'), name);
