Main Content
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('Processes'); c1.NumWorkers = 2; % Modify cluster c1.saveAsProfile('Processes2') % Create new profile c2 = parcluster('Processes2'); % Make cluster from new profile isequal(c1,c2)
1
c0 = parcluster('Processes') % Use original profile isequal(c0,c1)
0
Version History
Introduced in R2012a