Borrar filtros
Borrar filtros

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

8 visualizaciones (últimos 30 días)
mh z
mh z el 3 de Dic. de 2018
Comentada: mh z el 2 de En. de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Dic. de 2018
error('Rage quitting!')
  7 comentarios
Walter Roberson
Walter Roberson el 2 de En. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by