Filter löschen
Filter löschen

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

8 Ansichten (letzte 30 Tage)
mh z
mh z am 3 Dez. 2018
Kommentiert: mh z am 2 Jan. 2019
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Dez. 2018
error('Rage quitting!')
  7 Kommentare
Walter Roberson
Walter Roberson am 2 Jan. 2019
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

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

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by