I'v a nested for loop but it slows a little bit processing, how can I make the nested loops an efficient. What I need is for every value of outer loop, the inner loop continues all its iterations.
However, I don't think so it affects the computations as so much the two nested loops.
My second question is, is parfor
loop may affect the speed or may support my phenomena?
My Code:
n=2;
for i=1:500
for jj=1:n
A{1}=['Obj' num2str(1)];
A{2}=['Obj' num2str(2)];
end
end