set.m
上传用户:haiyisale
上传日期:2013-01-09
资源大小:3246k
文件大小:1k
源码类别:

波变换

开发平台:

Matlab

  1. function O = set(O,varargin)
  2. %SET Set WTBO object field contents.
  3. %   O = SET(O,'FieldName1',FieldValue1,'FieldName2',FieldValue2,...)
  4. %   sets the contents of the specified fields for the WTBO object O.
  5. %   
  6. %   The valid choices for 'FieldName' are:
  7. %     'wtboInfo' : Object information
  8. %     'ud'       : Userdata field
  9. %
  10. %   Caution: Don't use the WTBO SET function!
  11. %
  12. %   See also GET.
  13. %   M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 03-Aug-2000.
  14. %   Last Revision: 18-May-2003.
  15. %   Copyright 1995-2004 The MathWorks, Inc.
  16. %   $Revision: 1.6.4.2 $  $Date: 2004/03/15 22:39:31 $
  17. nbin = length(varargin);
  18. for k=1:2:nbin
  19.     try   ,  field = varargin{k}; O.(field) = varargin{k+1};
  20.     catch , lasterr('errorWTBX')
  21.     end
  22. end