Jump command in MATLAB

前端 未结 4 1468
[愿得一人]
[愿得一人] 2020-12-04 01:38

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

4条回答
  •  自闭症患者
    2020-12-04 02:00

    There is no goto statement in MATLAB, but there are a few other commands for use with loops that may help you:

    • continue: This statement will skip the remaining commands in a for or while loop and move on to the next iteration.
    • break: This statement will terminate execution of a for or while loop.

提交回复
热议问题