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 (2026). Inject error in function (https://jp.mathworks.com/matlabcentral/fileexchange/83283-inject-error-in-function), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2018a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加
謝辞

ヒントを得たファイル: tracer4m

バージョン 公開済み リリース ノート
1.0.1

Changed summary description

1.0.0