maxNumCompThreads(1);

조회 수: 7 (최근 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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by