Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

getLastReport

Returns last recorded formatted error message.

Syntax

  • messageText = getLastReport()

Output argument

  • messageText - a character vector: formatted error message.

Description

getLastReport returns last formatted error message.

Examples

lasterror('reset')
getLastReport()
state = execstr('xxxxxx', 'errcatch')
l = lasterror()
getLastReport

See also

lasterror, error.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET