Skip to Main Content Skip to Search
Product Documentation

isequalwithequalnans (DataMatrix) - Test DataMatrix objects for equality, treating NaNs as equal

Syntax

TF = isequalwithequalnans(DMObj1, DMObj2)
TF = isequalwithequalnans(DMObj1, DMObj2, DMObj3, ...)

Input Arguments

DMObj1, DMObj2, DMObj3DataMatrix objects, such as created by DataMatrix (object constructor).

Output Arguments

TFLogical value indicating if inputs are numerically equal (have the same contents), have the same size (same NRows and NCols properties), and have the same RowNames and ColNames properties. NaNs are considered equal to each other.

Description

TF = isequalwithequalnans(DMObj1, DMObj2) returns logical 1 (true) if the input DataMatrix objects, DMObj1 and DMObj2, meet the following:

Otherwise, it returns logical 0 (false). DMObj1 and DMObj2 do not have to have the same Name property. NaNs are considered equal to each other.

TF = isequalwithequalnans(DMObj1, DMObj2, DMObj3, ...) returns logical 1 (true) if all input DataMatrix objects, DMObj1, DMObj2, DMObj3, etc. meet the following:

Otherwise, it returns logical 0 (false). The input DataMatrix objects do not have to have the same Name property. NaNs are considered equal to each other.

See Also

DataMatrix | isequal

How To

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS