I have a loop like this:
b = 1;
for c = 1 : 10;
if b == 1
c = 1 + 3
end
end
What do I need to do to make to change c
?
Because as I read through the help, MATLAB resets the loop counter c
after it reaches end
.
Is there any way to change the value of the loop counter from within a for
loop?