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 1984-2000 The MathWorks, Inc. 
%  $Revision: 1.6 $  $Date: 2000/06/19 16:20:18 $

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