function value = getuprop(handle, name)
%GETUPROP Get value of user-defined property.
%  VALUE = GETUPROP(H, NAME) gets the value of the
%  user-defined property with name specified by NAME in the
%  object with handle H.  If the user-defined property does
%  not exist, an empty matrix will be returned in VALUE.
%
%  VALUES = GETUPROP(H) returns all user-defined properties
%  for the object with handle H.
%
%  This function is obsolete, use GETAPPDATA instead.
%
%  See also SETAPPDATA, RMAPPDATA, ISAPPDATA.

%  Steven L. Eddins, October 1994
%  Copyright 1984-2000 The Mathworks, Inc. 
%  $Revision: 1.16 $  $Date: 2000/06/02 04:41:45 $

error(nargchk(1,2,nargin));

if nargin == 1
    value = getappdata(handle);
elseif nargin == 2
    value = getappdata(handle, name);
end
