Home > classes > @cdata > get_xy_values.m

get_xy_values

PURPOSE ^

GET_XY_VALUES returns the values in vals.

SYNOPSIS ^

function varargout = get_xy_values(data, pl)

DESCRIPTION ^

 GET_XY_VALUES returns the values in vals.

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

 DESCRIPTION: GET_XY_VALUES returns the values in vals.

 CALL:         y    = get_xy_values(ao.data);
              [x,y] = get_xy_values(ao.data);      --> x is an empty array
              [x,y] = get_xy_values(ao.data, pl);  --> the pl has no effect

 VERSION:      $Id: get_xy_values.m,v 1.5 2008/02/12 19:54:05 hewitson Exp $

 HISTORY:      25-05-2007 Diepholz
                  Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function varargout = get_xy_values(data, pl)
0002 % GET_XY_VALUES returns the values in vals.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: GET_XY_VALUES returns the values in vals.
0007 %
0008 % CALL:         y    = get_xy_values(ao.data);
0009 %              [x,y] = get_xy_values(ao.data);      --> x is an empty array
0010 %              [x,y] = get_xy_values(ao.data, pl);  --> the pl has no effect
0011 %
0012 % VERSION:      $Id: get_xy_values.m,v 1.5 2008/02/12 19:54:05 hewitson Exp $
0013 %
0014 % HISTORY:      25-05-2007 Diepholz
0015 %                  Creation
0016 %
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 
0019 VERSION  = '$Id: get_xy_values.m,v 1.5 2008/02/12 19:54:05 hewitson Exp $';
0020 CATEGORY = 'Internal';
0021 
0022 % Check if this is a call for parameters
0023 if nargin == 2
0024   if isa(data, 'cdata') && ischar(pl)
0025     in = char(pl);
0026     if strcmp(in, 'Params')
0027       varargout{1} = plist;
0028       return
0029     elseif strcmp(in, 'Version')
0030       varargout{1} = VERSION;
0031       return
0032     elseif strcmp(in, 'Category')
0033       varargout{1} = CATEGORY;
0034       return
0035     end
0036   end
0037 end
0038 
0039 x  = [];
0040 y  = [];
0041 
0042 %% Set outputs
0043 if nargout == 1
0044     varargout{1} = data.y;
0045 
0046 elseif nargout == 2
0047     varargout{1} = data.x;
0048     varargout{2} = data.y;
0049 
0050 else
0051   error('### Incorrect output arguments.');
0052 end
0053 
0054 % END

Generated on Mon 31-Mar-2008 13:54:54 by m2html © 2003