Inject error in function

버전 1.0.1 (1.5 KB) 작성자: tommsch
This function injects an error in an m-file at a line. Can be used to abort a function.

다운로드 수: 3

업데이트 날짜: 2020/11/24

라이선스 보기

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`.

인용 양식

tommsch (2022). Inject error in function (https://www.mathworks.com/matlabcentral/fileexchange/83283-inject-error-in-function), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

받음: tracer4m

Community Treasure Hunt

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

Start Hunting!