I\'m working with the m-file editor of MATLAB and I need to jump from one line to another. If I need to jump from inside a For...end, I can\'t use
For
end
that solves the problem easily:
caseno = input('input your case no'); switch (caseno) case 1 disp('this first section will run'); case 2 disp('this second section will run'); otherwise disp('wrong case no'); end