Documentation Center

  • Trial Software
  • Product Updates

isequal

True if clusters have same property values

Syntax

isequal(C1,C2)
isequal(C1,C2,C3,...)

Description

isequal(C1,C2) returns logical 1 (true) if clusters C1 and C2 have the same property values, or logical 0 (false) otherwise.

isequal(C1,C2,C3,...) returns true if all clusters are equal. isequal can operate on arrays of clusters. In this case, the arrays are compared element by element.

When comparing clusters, isequal does not compare the contents of the clusters' Jobs property.

Examples

Compare clusters after some properties are modified.

c1 = parcluster('local');
c1.NumWorkers = 2;         % Modify cluster
c1.saveAsProfile('local2') % Create new profile
c2 = parcluster('local2'); % Make cluster from new profile
isequal(c1,c2)
1
c0 = parcluster('local')   % Use original profile
isequal(c0,c1)
0

See Also

Was this topic helpful?