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.2 2007/05/25 15:19:14 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.2 2007/05/25 15:19:14 ingo Exp $ 0015 % 0016 % HISTORY: 06-02-2007 M Hewitson 0017 % Creation 0018 % 0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0020 0021 %% Create parameter list to get the y-axis values 0022 pl = plist(param('ydata', 'x_xx_y')); 0023 0024 %% Get the data from analysis object 0025 [dummy, x] = get_xy_axis(b.data, pl); 0026 0027 %% Get data from second input 0028 if isa(c, 'ao') 0029 [dummy, y] = get_xy_axis(c.data, pl); 0030 else 0031 y = c*ones(size(x)); 0032 end 0033 0034 %% Create Output 0035 a = x>y; 0036 0037 % END