Inject error in function

Versione 1.0.1 (1,5 KB) da tommsch
This function injects an error in an m-file at a line. Can be used to abort a function.
3 download
Aggiornato 24 nov 2020

Visualizza la licenza

This function (most likely) generates an error at an arbitrary line in a function. The taken approach may be used to solve the long-standing problem of breaking out of a function using a callback, without the need to modify the function in question.
It does this by quite brutal means: Namely, it injects ( via the use of dbstop ) at every line the command `clear all`.

Cita come

tommsch (2026). Inject error in function (https://it.mathworks.com/matlabcentral/fileexchange/83283-inject-error-in-function), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2018a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Riconoscimenti

Ispirato da: tracer4m

Versione Pubblicato Note della release
1.0.1

Changed summary description

1.0.0