*Hello everyone,
Can anyone show me how I can avoid following for loops.
Thanks!*
mth=0; nth=0; for i=1:1000 ML = [1,2;3,4]; for ix=1:size(ML,1) for iy=1:size(ML,2) M(mth+ix,nth+iy)=ML(ix,iy); end end mth = mth+size(ML,1); nth = nth+size(ML,2); end
Best Answer