invoerr

Improved invocation error reporting for Matlab functions
ダウンロード: 281
更新 2010/10/12

ライセンスの表示

At the Matlab Conference, 2010 in London, Joe Hicklin commented that he was interested in seeing improved invocation error reporting in Matlab functions, so here's my stab at providing some of that ability.

The function takes:
- a string of the calling function's name
- an integer of which argument the error is in
- cell arrays of strings with pairs of argument name and argument types

e.g. invoerr('foo',2,{'bar','int'},{'baz','str'})

creates an error report thus:

Error in function foo at argument 2 (baz):

foo(bar,baz)

e.g. foo(1,'a character string')

引用

Adam Leadbetter (2024). invoerr (https://www.mathworks.com/matlabcentral/fileexchange/29007-invoerr), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCharacters and Strings についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0