Programatically determine Matlabpool Maximum Number of Local Workers

I'm developing some code which will be shared with colleagues running different versions of matlab. Is there a way to programatically tell the maximum number of workers in the local pool?

 採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 5 月 6 日

2 投票

>> myCluster = parcluster('local');
>> myCluster.NumWorkers
For ver > R2012a, for earlier you may have to use findresource. This change is captured in the release notes for R2012a:
If your colleagues use earlier releases, you may have to do a version check and then an if else block.
>> version -release

1 件のコメント

Susan
Susan 2013 年 5 月 7 日
Thank you. I was able to use findresource on all of the matlab versions that interest us.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by