1

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を使用しています....誰か助けてくれますか?

4

0 に答える 0