File Exchange

image thumbnail

Printing MATLAB errors (R14sp3 and later)

version (1.51 KB) by

Produces formatted output from the information returned by "lasterror"



View License

Following the long-awaited addition to MATLAB of a mechanism for retrieving the call stack at the time of the last error it is now possible to find out where in the code the error occurred even when an error has been caught by a "catch" statement.
However, the convenient hyperlinks which allow you to go directly to the source of the error are only available when the error is uncaught.

This function prints similar hyperlinks in the MATLAB command window even for errors which were caught. Simply type "ple" at any time, and details of the the last error, including hyperlinks to every point in the call stack, will be shown in the command window.

Comments and Ratings (0)


Updated license


Added copyright notice and suppressed an M-Lint warning.



MATLAB Release
MATLAB 7.1.0 (R14SP3)

Inspired: SeisLab 2.01, SeisLab 3.01

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video