maxNumCompThreads(1);

4 次查看(过去 30 天)
Xiaoge Wang
Xiaoge Wang 2016-3-3
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

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by