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!