Products & Services Solutions Academia Support User Community Company

Learn more about Bioinformatics Toolbox   

ge (DataMatrix) - Test DataMatrix objects for greater than or equal to

Syntax

T = ge(DMObj1, DMObj2)
T = DMObj1 >= DMObj2
T = ge(DMObj1, B)
T = DMObj1 >= B
T = ge(B, DMObj1)
T = B >= DMObj1

Arguments

DMObj1, DMObj2DataMatrix objects, such as created by DataMatrix (object constructor).
BMATLAB numeric or logical array.

Return Values

TLogical matrix of the same size as DMObj1 and DMObj2 or DMObj1 and B. It contains logical 1 (true) where elements in the first input are greater than or equal to the corresponding element in the second input, and logical 0 (false) otherwise.

Description

T = ge(DMObj1, DMObj2) or the equivalent T = DMObj1 >= DMObj2 compares each element in DataMatrix object DMObj1 to the corresponding element in DataMatrix object DMObj2, and returns T, a logical matrix of the same size as DMObj1 and DMObj2, containing logical 1 (true) where elements in DMObj1 are greater than or equal to the corresponding element in DMObj2, and logical 0 (false) otherwise. DMObj1 and DMObj2 must have the same size (number of rows and columns), unless one is a scalar (1-by-1 DataMatrix object). DMObj1 and DMObj2 can have different Name properties.

T = ge(DMObj1, B) or the equivalent T = DMObj1 >= B compares each element in DataMatrix object DMObj1 to the corresponding element in B, a numeric or logical array, and returns T, a logical matrix of the same size as DMObj1 and B, containing logical 1 (true) where elements in DMObj1 are greater than or equal to the corresponding element in B, and logical 0 (false) otherwise. DMObj1 and B must have the same size (number of rows and columns), unless one is a scalar.

T = ge(B, DMObj1) or the equivalent T = B >= DMObj1 compares each element in B, a numeric or logical array, to the corresponding element in DataMatrix object DMObj1, and returns T, a logical matrix of the same size as B and DMObj1, containing logical 1 (true) where elements in B are greater than or equal to the corresponding element in DMObj1, and logical 0 (false) otherwise. B and DMObj1 must have the same size (number of rows and columns), unless one is a scalar.

MATLAB calls T = ge(X, Y) for the syntax T = X >= Y when X or Y is a DataMatrix object.

See Also

Bioinformatics Toolbox function: DataMatrix (object constructor)

Bioinformatics Toolbox object: DataMatrix object

Bioinformatics Toolbox method of a DataMatrix object: le

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS