Assigning single processor core in script
2 次查看(过去 30 天)
显示 更早的评论
Hi, i am looking for a way to assignt a single core from within matlab.
i.e something like:
%%my script:
clc;
clear all;
%etc etc...
"restrict to one core"
tic;
% code goes here
toc;
"remove restriction again"
I know about the windows task manager way of restricting matlab to one core, but i am writing a script to surround a function with profiling and timing so it would be nice if all the user had to do was to execute this script.
thx in advance!
2 个评论
Walter Roberson
2013-8-12
It is possible to start up MATLAB restricted to one thread: would that be satisfactory?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!