These are the code:
% chunk the data up
numData = size(X,2) ;numChunks = parpool('local', 2);data = Composite() ;dist = Composite() ;assign = Composite() ;for i = 1:numChunks; chunk = i:numChunks:numData ; data{i} = X(:, chunk) ; dist{i} = inf(1, numel(chunk), class(X)) ; assign{i} = zeros(1, numel(chunk)) ;end
When I run the code, it shows error Undefined operator ':' for input arguments of type 'parallel.Pool'.
First, what mean by that error ? And what should I do to solve this error?
Thank you.
Best Answer