GE overloads >= operator for analysis objects. Compare the y-axis values. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: GE overloads >= operator for analysis objects. Compare the y-axis values. CALL: a = b>=c; POSSIBLE VALUES: b: Analysis object c: Analysis object or a scalar. VERSION: $Id: ge.m,v 1.3 2007/06/20 15:19:54 ingo Exp $ HISTORY: 06-02-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function a = ge(b,c) 0002 % GE overloads >= operator for analysis objects. Compare the y-axis values. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: GE overloads >= operator for analysis objects. 0007 % Compare the y-axis values. 0008 % 0009 % CALL: a = b>=c; 0010 % 0011 % POSSIBLE VALUES: b: Analysis object 0012 % c: Analysis object or a scalar. 0013 % 0014 % VERSION: $Id: ge.m,v 1.3 2007/06/20 15:19:54 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 The value is not necessary. 0022 % It is only necessary that the value is set. 0023 pl = plist(param('ydata', 'x_xx_y')); 0024 0025 %% Get the data from analysis object 0026 [dummy, x] = get_xy_axis(b.data, pl); 0027 0028 %% Get data from second input 0029 if isa(c, 'ao') 0030 [dummy, y] = get_xy_axis(c.data, pl); 0031 else 0032 y = c*ones(size(x)); 0033 end 0034 0035 %% Create Output 0036 a = x>=y; 0037 0038 % END