continue
Programming
Skip the rest of the current loop iteration and proceed to the next iteration.
Syntax
continue
Examples
for i = 1:10
if mod(i, 2) == 0
continue
end
disp(i) % prints odd numbers only
end▶ RunSee Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab