How do I change the iteration variable of the for loop?
15 views (last 30 days)
Is there any way to change the iteration of the forlooplimit in the code? I tried this:
for j = 1:a-b
plot(Position(1, j), Position(2, j), 'r.');
if (Position(1, j) >= 50)
but it's not working since my Positionmatrix changes size and the index j get's out of bound.