You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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')
Cite As
Adam Leadbetter (2026). invoerr (https://www.mathworks.com/matlabcentral/fileexchange/29007-invoerr), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (2.21 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |