In MATLAB (or more generally) if I wanted something to happen only, for example, every 50 iterations of a for loop how could I do this better than below? That is to not write out every possible value of +50. Thanks.
for i = 1:1060;
if i = 50 || 100 || 150 || ... || 1050
randi(i); % for example, just do something
end;
end;
if i mod 50 = 0..