MATLAB: I want someone t explain it to me

for loop

for kk = [0 5 ; 3 3] disp('#') end

Best Answer

kk iterates over the columns of the matrix There are two columns in the matrix so there will be two iterations of the loop. On the first, kk=[0;3], on the second kk=[5;3]. On each iteration # is displayed in the workspace.