我想使用 4 lab 运行 matlab kmeans
我打开matlabpool
if ~matlabpool('size')
matlabpool open 4; % Invokes workers
end
我为 kmeans 设置了选项
stream = RandStream('mlfg6331_64'); % Random number stream
options = statset('UseParallel','always','UseSubstreams','always',...
'Streams',stream);
然后我运行kmeans
[clustersFirstHalf,fCentr] = kmeans(first_partition,cIdx,'Options',options,...
'distance','sqEuclidean',...
'emptyaction','singleton',...
'replicates',37,...
'start','cluster');
我收到此警告消息...
Warning: Using parfor without matlabpool.
> In processParallelAndStreamOptions>parforValidateStreamOptions at 173
In processParallelAndStreamOptions at 78
In kmeans at 254
In kmeans>loopBody at 360
In smartForReduce>(parfor body) at 111
In parallel_function>make_general_channel/channel_general at 879
In remoteParallelFunction at 30
matlabpool 是开放的……所以很奇怪……
我在 linux 上使用 MATLAB R2012b ......你们能帮帮我吗?