Azzera filtri
Azzera filtri

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

8 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Walter Roberson
Walter Roberson il 3 Dic 2018
error('Rage quitting!')
  7 Commenti
Walter Roberson
Walter Roberson il 2 Gen 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.

Accedi per commentare.

Più risposte (1)

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

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by