How is parfor time taken is larger than that by normal for loop ?
1 view (last 30 days)
Sindar on 17 Jul 2020
Best guess: you don't preallocate y, nor clear it. So, the parfor needs to expand the vector constantly while the for is simply overwriting elements. Try