Home > classes > @ao > eq.m

eq

PURPOSE ^

EQ overloads == operator for analysis objects. Compare the y-axis values.

SYNOPSIS ^

function a = eq(b,c)

DESCRIPTION ^

 EQ overloads == operator for analysis objects. Compare the y-axis values.

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

 DESCRIPTION: EQ 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: eq.html,v 1.2 2007/07/10 05:37:08 hewitson Exp $

 HISTORY: 06-02-2007 M Hewitson
             Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function a = eq(b,c)
0002 % EQ overloads == operator for analysis objects. Compare the y-axis values.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: EQ 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: eq.html,v 1.2 2007/07/10 05:37:08 hewitson 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

Generated on Wed 04-Jul-2007 19:03:10 by m2html © 2003