How to make a function/script start over

Hello,
How can I make a script/function start over (as if nothing had happened) if certain criteria are not met ?
Thank you, have a nice day !

 采纳的回答

You cannot do that in MATLAB. You can, however, code a "while" loop that your code breaks out of if it is satisfied that everything is okay.

3 个评论

oh nooo that's disappointing ^^ thank you :)
sorry i just did that and now my function is dreadfully slow ? is this to be expected ?
sorry it was a stupid mistake ^^

请先登录,再进行评论。

更多回答(1 个)

类别

帮助中心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