stop for loop if a thing happens

 采纳的回答

Jan
Jan 2011-9-8

1 个投票

Or BREAK.
You can find a list of commands concerning FOR loops in the "See also" line of help for. This line is created exactly for such questions.

更多回答(2 个)

Wesley Ooms
Wesley Ooms 2011-9-8

0 个投票

i looked it up for you. the command is 'break' :)

2 个评论

@Weasley: please edit your answers in place of creating new ones.
plz answer him instead of saying this

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by