set.m
上传用户:haiyisale
上传日期:2013-01-09
资源大小:3246k
文件大小:1k
- function O = set(O,varargin)
- %SET Set WTBO object field contents.
- % O = SET(O,'FieldName1',FieldValue1,'FieldName2',FieldValue2,...)
- % sets the contents of the specified fields for the WTBO object O.
- %
- % The valid choices for 'FieldName' are:
- % 'wtboInfo' : Object information
- % 'ud' : Userdata field
- %
- % Caution: Don't use the WTBO SET function!
- %
- % See also GET.
- % M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 03-Aug-2000.
- % Last Revision: 18-May-2003.
- % Copyright 1995-2004 The MathWorks, Inc.
- % $Revision: 1.6.4.2 $ $Date: 2004/03/15 22:39:31 $
- nbin = length(varargin);
- for k=1:2:nbin
- try , field = varargin{k}; O.(field) = varargin{k+1};
- catch , lasterr('errorWTBX')
- end
- end