maxNumCompThreads(1);

8 ビュー (過去 30 日間)
Xiaoge Wang
Xiaoge Wang 2016 年 3 月 3 日
編集済み: Dyuman Joshi 2025 年 10 月 23 日
This is no longer valid. Then how to set the max number of threads in R2015b?

回答 (1 件)

Rebecca Krosnick
Rebecca Krosnick 2016 年 3 月 8 日
maxNumCompThreads(1) should still work. The documentation page for maxNumCompThreads indicates that maxNumCompThreads will be removed in a future version: http://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html
Another option for setting the maximum number of computational threads to 1 is to use the -singleCompThread option when starting MATLAB® to limit MATLAB to a single computational thread. Open MATLAB from a terminal with
matlab -singleCompThread
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2025 年 10 月 23 日
編集済み: Dyuman Joshi 2025 年 10 月 23 日
The documentation page no longer mentions that the function/functionality will be removed. Nor there is any notice specifying whether it has been deprecated or not.
It would be better if TMW could specify what the status for maxNumCompThreads is.

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

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by