maxNumCompThreads(1);
Ältere Kommentare anzeigen
This is no longer valid. Then how to set the max number of threads in R2015b?
Antworten (1)
Rebecca Krosnick
am 8 Mär. 2016
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 Kommentar
Dyuman Joshi
am 23 Okt. 2025
Bearbeitet: Dyuman Joshi
am 23 Okt. 2025
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.
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!