function A = subsasgn(A,S,B)
%FIGOBJ/SUBSASGN

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.7 $  $Date: 2000/06/15 22:42:50 $
%   B.A. Jones & J.H. Roh 4-25-97.



switch S.type
case '.'
   switch lower(S.subs)
   case 'notes'
      A.Notes = B;
   case 'date'
      A.Date = B;
   case 'origin'
      A.Origin = B;
   case 'savedposition'
      A.SavedPosition = B;
   case 'dragobjects'
      A.DragObjects = B;
   otherwise
      hgObj = A.scribehgobj;
      A.scribehgobj = subsasgn(hgObj,S,B);
   end
end
