function B = loadobj(A)
%AXISOBJ/LOADOBJ

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.3 $  $Date: 2000/06/01 02:52:26 $


if strcmp(class(A),'axisobj')
   B=A;
else % object definition has changed
   % or the parent class definition has changed?
   try
      A = rmfield(A,'Draggable');
      HGObj = A.scribehgobj;
      A = rmfield(A,'scribehgobj');
      B = class(A,'axisobj',HGObj);  
   catch
      disp(lasterr)
      warning('Incompatible version of .fig file.');
   end

end
