How to stop a script from executing

103 次查看(过去 30 天)
This is a basic question but I am wondering how you can halt a script from executing mid script.

采纳的回答

bym
bym 2011-8-16
Ctrl-c (control + c keys)
  4 个评论
Hayden Mann
Hayden Mann 2018-12-13
Make sure you click on the command window then press Ctrl + c.

请先登录,再进行评论。

更多回答(1 个)

Paulo Silva
Paulo Silva 2011-8-16
%code
error('Mid script reached, this error message was made on purpose')
%code
Another alternative could be the use of the return function

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by