if I have some code that could be writed in same way with parfeval o parfor, what i have to use? What is better? Which is more advantageous, faster… e.g:
parfor i = 1:n result = function(data);end
or
for i = 1:n F(i) = parfeval(@function, 1, data);endfor i = 1:n [index, value] = fetchNext(F);end
Best Answer