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

Printing MATLAB errors (R14sp3 and later)

by

 

06 Jan 2006 (Updated )

Produces formatted output from the information returned by "lasterror"

| Watch this File

File Information
Description

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.

Acknowledgements

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.
Updates
17 Dec 2009

Review

15 Feb 2010

Added copyright notice and suppressed an M-Lint warning.

Contact us