控制循环退出的关键字Break、Continue和Return——MATLAB
控制循环退出的关键字Break、Continue和Returnfor i = 1:2 for j = 2:4 disp(["i = " + num2str(i) + ", j = " + num2str(j)]); endendfor i = 1: 2 for j = 1 : 4 if(j == 2) continue; % 结束当前循环(continue后面的语句不再执行)