


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.5 2007/11/23 12:11:08 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.5 2007/11/23 12:11:08 ingo Exp $ 0015 % 0016 % HISTORY: 06-02-2007 M Hewitson 0017 % Creation 0018 % 0019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0020 0021 VERSION = '$Id: ge.m,v 1.5 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 The value is not necessary. 0038 % It is only necessary that the value is set. 0039 pl = plist(param('ydata', 'x_xx_y')); 0040 0041 %% Get the data from analysis object 0042 [dummy, x] = get_xy_values(b.data, pl); 0043 0044 %% Get data from second input 0045 if isa(c, 'ao') 0046 [dummy, y] = get_xy_values(c.data, pl); 0047 else 0048 y = c*ones(size(x)); 0049 end 0050 0051 %% Create Output 0052 a = x>=y; 0053 0054 % END