Home > classes > @ao > ctranspose.m

ctranspose

PURPOSE ^

CTRANSPOSE overloads the ' operator for Analysis Objects.

SYNOPSIS ^

function varargout = ctranspose(varargin)

DESCRIPTION ^

 CTRANSPOSE overloads the ' operator for Analysis Objects.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: CTRANSPOSE overloads the ' operator for Analysis Objects.

 CALL:        a = a1'    % only with data = cdata

 VERSION:     $Id: ctranspose.m,v 1.22 2008/08/11 08:40:36 hewitson Exp $

 PARAMETERS:  see help for data2D/applymethod for additional parameters

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

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

 HISTORY: 08-05-07 A Monsky
             Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 % CTRANSPOSE overloads the ' operator for Analysis Objects.
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION: CTRANSPOSE overloads the ' operator for Analysis Objects.
0005 %
0006 % CALL:        a = a1'    % only with data = cdata
0007 %
0008 % VERSION:     $Id: ctranspose.m,v 1.22 2008/08/11 08:40:36 hewitson Exp $
0009 %
0010 % PARAMETERS:  see help for data2D/applymethod for additional parameters
0011 %
0012 % M-FILE INFO: Get information about this methods by calling
0013 %              >> ao.getInfo('ctranspose')
0014 %
0015 %              Get information about a specified set-plist by calling:
0016 %              >> ao.getInfo('ctranspose', 'None')
0017 %
0018 % HISTORY: 08-05-07 A Monsky
0019 %             Creation
0020 %
0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0022 
0023 function varargout = ctranspose(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   import utils.const.*
0032   utils.helper.msg(msg.MNAME, 'running %s/%s', mfilename('class'), mfilename);
0033   
0034   % Collect input variable names
0035   in_names = cell(size(varargin));
0036   for ii = 1:nargin,in_names{ii} = inputname(ii);end
0037 
0038   % Collect all AOs
0039   [as, ao_invars] = utils.helper.collect_objects(varargin(:), 'ao', in_names);
0040   pl              = utils.helper.collect_objects(varargin(:), 'plist', in_names);
0041 
0042   % Decide on a deep copy or a modify
0043   bs = copy(as, nargout);
0044 
0045   % Combine plists
0046   pl = combine(pl, getDefaultPlist);
0047 
0048   % Apply method to all AOs
0049   applymethod(bs, ao_invars, 'ctranspose', pl, getDefaultPlist(), getInfo);
0050 
0051   % Set output
0052   if nargout > 0
0053     varargout{1} = bs;
0054   end
0055 end
0056 
0057 %--------------------------------------------------------------------------
0058 % Get Info Object
0059 %--------------------------------------------------------------------------
0060 function ii = getInfo(varargin)
0061 
0062   if nargin == 1 && strcmpi(varargin{1}, 'None')
0063     sets = {};
0064     pl   = [];
0065   else
0066     sets = {'Default'};
0067     pl   = getDefaultPlist;
0068   end
0069   % Build info object
0070   ii = minfo(mfilename, 'ao', '', 'Operator', '$Id: ctranspose.m,v 1.22 2008/08/11 08:40:36 hewitson Exp $', sets, pl);
0071 end
0072 
0073 %--------------------------------------------------------------------------
0074 % Get Default Plist
0075 %--------------------------------------------------------------------------
0076 function pl_default = getDefaultPlist()
0077   pl_default = plist('axis', 'xy');
0078 end
0079

Generated on Mon 25-Aug-2008 22:39:29 by m2html © 2003