How do I change the iteration variable of the for loop?
1 次查看(过去 30 天)
显示 更早的评论
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)
Position(1,j)=[];
b=b+1;
end;
end;
but it's not working since my Positionmatrix changes size and the index j get's out of bound.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!