From: Sumeet on
Hello,
I'm trying to speed up a for loop in a Matlab program using parfor. The problem for loop is as follows:

coupled_data = zeros(1, length(e)/segment_size);
parfor i=segment_size:segment_size:length(e)
coupled_data(i/segment_size)= bin2dec(num2str(data_e(i-segment_size+1:i)))+1;
end

I get the following error:
??? Error: File: HMMEST_no_overlap_bits.m Line: 18 Column: 5
The variable coupled_data in a parfor cannot be classified.

Any help would be appreciated.
Thanks