


GT overloads > operator for analysis objects. Compare the y-axis values.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: GT overloads > operator for analysis objects.
Compare the y-axis values.
CALL: a = b>=;
POSSIBLE VALUES: b: Analysis object
c: Analysis object or a scalar.
VERSION: $Id: gt.m,v 1.4 2007/11/23 12:11:08 ingo Exp $
HISTORY: 06-02-2007 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function a = gt(b,c) 0002 % GT overloads > operator for analysis objects. Compare the y-axis values. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: GT overloads > operator for analysis objects. 0007 % Compare the y-axis values. 0008 % 0009 % CALL: a = b>=; 0010 % 0011 % POSSIBLE VALUES: b: Analysis object 0012 % c: Analysis object or a scalar. 0013 % 0014 % VERSION: $Id: gt.m,v 1.4 2007/11/23 12:11:08 ingo Exp $ 0015 % 0016 % HISTORY: 06-02-2007 M Hewitson 0017 % Creation 0018 % 0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0020 0021 VERSION = '$Id: gt.m,v 1.4 2007/11/23 12:11:08 ingo Exp $'; 0022 0023 % Check if this is a call for parameters or for the cvs-version number 0024 if nargin == 2 0025 if isa(b, 'ao') && ischar(c) 0026 in = char(c); 0027 if strcmp(in, 'Params') 0028 a = plist(); 0029 return 0030 elseif strcmp(in, 'Version') 0031 a = VERSION; 0032 return 0033 end 0034 end 0035 end 0036 0037 %% Create parameter list to get the y-axis values 0038 pl = plist(param('ydata', 'x_xx_y')); 0039 0040 %% Get the data from analysis object 0041 [dummy, x] = get_xy_values(b.data, pl); 0042 0043 %% Get data from second input 0044 if isa(c, 'ao') 0045 [dummy, y] = get_xy_values(c.data, pl); 0046 else 0047 y = c*ones(size(x)); 0048 end 0049 0050 %% Create Output 0051 a = x>y; 0052 0053 % END