You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Malcolm Wood (2026). Printing MATLAB errors (R14sp3 and later) (https://nl.mathworks.com/matlabcentral/fileexchange/9525-printing-matlab-errors-r14sp3-and-later), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: SeisLab 2.01, SeisLab 3.01
General Information
- Version 1.2.0.1 (1.51 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
