SETFS Set the property 'fs'. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Set the property 'fs'. CALL: obj.setFs(12); obj = obj.setFs(12); create copy of the object INPUTS: obj - must be a single data2D object. M-FILE INFO: Get information about this methods by calling >> fsdata.getInfo('setFs') Get information about a specified set-plist by calling: >> fsdata.getInfo('setFs', 'None') VERSION: $Id: setFs.m,v 1.2 2008/09/04 15:29:30 ingo Exp $ HISTORY: 27-05-2008 Diepholz Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 % SETFS Set the property 'fs'. 0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0003 % 0004 % DESCRIPTION: Set the property 'fs'. 0005 % 0006 % CALL: obj.setFs(12); 0007 % obj = obj.setFs(12); 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 % >> fsdata.getInfo('setFs') 0013 % 0014 % Get information about a specified set-plist by calling: 0015 % >> fsdata.getInfo('setFs', 'None') 0016 % 0017 % VERSION: $Id: setFs.m,v 1.2 2008/09/04 15:29:30 ingo Exp $ 0018 % 0019 % HISTORY: 27-05-2008 Diepholz 0020 % Creation 0021 % 0022 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0023 0024 function varargout = setFs(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 'fs' 0039 obj.fs = 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, 'fsdata', '', utils.const.categories.internal, '$Id: setFs.m,v 1.2 2008/09/04 15:29:30 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('fs', ''); 0084 end 0085