View License

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

» Watch video

Highlights from
Printing MATLAB errors (R14sp3 and later)

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.51 KB File ID: #9525 Version:

Printing MATLAB errors (R14sp3 and later)


Malcolm Wood (view profile)


06 Jan 2006 (Updated )

Produces formatted output from the information returned by "lasterror"

| Watch this File

File Information

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.


This file inspired Seis Lab 2.01 and Seis Lab 3.01.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
17 Dec 2009 1.1


15 Feb 2010 1.2

Added copyright notice and suppressed an M-Lint warning.

01 Sep 2016

Updated license

Contact us