How to end the running of a script in a subfunction?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposta accettata
Walter Roberson
il 3 Dic 2018
error('Rage quitting!')
7 Commenti
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.
Più risposte (1)
Vedere anche
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!