Home > classes > @tsdata > setNsecs.m

setNsecs

PURPOSE ^

SETNSECS Set the property 'nsecs'.

SYNOPSIS ^

function varargout = setNsecs(varargin)

DESCRIPTION ^

 SETNSECS Set the property 'nsecs'.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: Set the property 'nsecs'.

 CALL:              obj.setNsecs(1000);
              obj = obj.setNsecs(1000); create copy of the object

 INPUTS:      obj - must be a single data2D object.

 M-FILE INFO: Get information about this methods by calling
              >> tsdata.getInfo('setNsecs')

              Get information about a specified set-plist by calling:
              >> tsdata.getInfo('setNsecs', 'None')

 VERSION:     $Id: setNsecs.m,v 1.2 2008/09/04 15:29:32 ingo Exp $

 HISTORY:     27-05-2008 Diepholz
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 % SETNSECS Set the property 'nsecs'.
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION: Set the property 'nsecs'.
0005 %
0006 % CALL:              obj.setNsecs(1000);
0007 %              obj = obj.setNsecs(1000); create copy of the object
0008 %
0009 % INPUTS:      obj - must be a single data2D object.
0010 %
0011 % M-FILE INFO: Get information about this methods by calling
0012 %              >> tsdata.getInfo('setNsecs')
0013 %
0014 %              Get information about a specified set-plist by calling:
0015 %              >> tsdata.getInfo('setNsecs', 'None')
0016 %
0017 % VERSION:     $Id: setNsecs.m,v 1.2 2008/09/04 15:29:32 ingo Exp $
0018 %
0019 % HISTORY:     27-05-2008 Diepholz
0020 %                 Creation
0021 %
0022 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0023 
0024 function varargout = setNsecs(varargin)
0025 
0026   %%% Check if this is a call for parameters
0027   if utils.helper.isinfocall(varargin{:})
0028     varargout{1} = getInfo(varargin{3});
0029     return
0030   end
0031 
0032   obj = varargin{1};
0033   val = varargin{2};
0034 
0035   %%% decide whether we modify the pz-object, or create a new one.
0036   obj = copy(obj, nargout);
0037 
0038   %%% set 'nsecs'
0039   obj.nsecs = val;
0040 
0041   varargout{1} = obj;
0042 end
0043 
0044 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0045 %                               Local Functions                               %
0046 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0047 
0048 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0049 %
0050 % FUNCTION:    getInfo
0051 %
0052 % DESCRIPTION: Get Info Object
0053 %
0054 % HISTORY:     11-07-07 M Hewitson
0055 %                Creation.
0056 %
0057 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0058 
0059 function ii = getInfo(varargin)
0060   if nargin == 1 && strcmpi(varargin{1}, 'None')
0061     sets = {};
0062     pl   = [];
0063   else
0064     sets = {'Default'};
0065     pl   = getDefaultPlist;
0066   end
0067   % Build info object
0068   ii = minfo(mfilename, 'tsdata', '', utils.const.categories.internal, '$Id: setNsecs.m,v 1.2 2008/09/04 15:29:32 ingo Exp $', sets, pl);
0069 end
0070 
0071 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0072 %
0073 % FUNCTION:    getDefaultPlist
0074 %
0075 % DESCRIPTION: Get Default Plist
0076 %
0077 % HISTORY:     11-07-07 M Hewitson
0078 %                Creation.
0079 %
0080 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0081 
0082 function plo = getDefaultPlist()
0083   plo = plist('nsecs', '');
0084 end
0085

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003