Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Introduced in R2012a

Was this topic helpful?