MATLAB PARALLEL COMPUTING TOOLBOX - S Uživatelská příručka Strana 489

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 656
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 488
isequal
11-145
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
parcluster
Zobrazit stránku 488
1 2 ... 484 485 486 487 488 489 490 491 492 493 494 ... 655 656

Komentáře k této Příručce

Žádné komentáře