Azzera filtri
Azzera filtri

How to stop a script from executing

37 visualizzazioni (ultimi 30 giorni)
Chris
Chris il 16 Ago 2011
Commentato: Hernan Larriva il 3 Apr 2023
This is a basic question but I am wondering how you can halt a script from executing mid script.

Risposta accettata

bym
bym il 16 Ago 2011
Ctrl-c (control + c keys)
  4 Commenti
Hayden Mann
Hayden Mann il 13 Dic 2018
Make sure you click on the command window then press Ctrl + c.
Hernan Larriva
Hernan Larriva il 3 Apr 2023
thank very much!

Accedi per commentare.

Più risposte (1)

Paulo Silva
Paulo Silva il 16 Ago 2011
%code
error('Mid script reached, this error message was made on purpose')
%code
Another alternative could be the use of the return function

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by