function B = loadobj(A)
%AXISOBJ/LOADOBJ

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 1998/06/29 16:46:16 $


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
