FUNCTION REFERENCE
lasterr
Read or replace the previous error message and identifier.
Read or replace the previous error message and identifier.
Syntax
[message, identifier] = lasterr([newMessage [, newIdentifier]])Example
lasterr('old','pkg:id'); x=lasterr('new') % oldDifferences from MATLAB: Stored messages omit MATLAB script and line-number prefixes.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.