...
http://www.mathworks.com/help/distcomp/getting-started-with-parfor.html
The following is an example of the misuse of parfor (i.e. it will not work as one might expect):
f = zeros(1,50);
f(1) = 1;
f(2) = 2;
parfor n = 3:50
f(n) = f(n-1) + f(n-2);
end
...