Effacer les filtres
Effacer les filtres

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

8 vues (au cours des 30 derniers jours)
mh z
mh z le 3 Déc 2018
Commenté : mh z le 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Déc 2018
error('Rage quitting!')
  7 commentaires
Walter Roberson
Walter Roberson le 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.
mh z
mh z le 2 Jan 2019
OK!

Connectez-vous pour commenter.

Plus de réponses (1)

madhan ravi
madhan ravi le 3 Déc 2018
function...
input('just press control + c to stop script')
end

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by