Home > classes > @ao > yunits.m

yunits

PURPOSE ^

YUNITS Get the data property 'yunits'.

SYNOPSIS ^

function varargout = yunits(varargin)

DESCRIPTION ^

 YUNITS Get the data property 'yunits'.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: Get the data property 'yunits'.

 CALL:        val = ao.yunits();

 INPUTS:      obj - must be a single data2D object.

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

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

 VERSION:     $Id: yunits.m,v 1.1 2008/09/05 13:55:17 ingo Exp $

 HISTORY:     27-05-2008 Diepholz
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

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

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