Hi,
I am a beginner to matlab. Can you please tell me how to avoid using nested for loops in matlab.
THis piece of code is taking lot of space in my hard drive and time.
for i = 1:10000 for j = 1:10000 a(i,j) = i+j endend
MATLABnested loops
for i = 1:10000 for j = 1:10000 a(i,j) = i+j endend
Best Answer