How to end the running of a script in a subfunction?

8 次查看(过去 30 天)
I use matlab 2014b where the script and function are in different m files. Is it possible to end the running of the script in a function?

采纳的回答

Walter Roberson
Walter Roberson 2018-12-3
error('Rage quitting!')
  7 个评论
Walter Roberson
Walter Roberson 2019-1-2
Then, NO, you cannot do that without seeing the error message -- not unless the program cooperates to try/catch to detect the quit and stop itself nicely.

请先登录,再进行评论。

更多回答(1 个)

madhan ravi
madhan ravi 2018-12-3
function...
input('just press control + c to stop script')
end

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by