Printing MATLAB errors (R14sp3 and later)

Produces formatted output from the information returned by "lasterror"

您现在正在关注此提交

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.

引用格式

Malcolm Wood (2026). Printing MATLAB errors (R14sp3 and later) (https://ww2.mathworks.cn/matlabcentral/fileexchange/9525-printing-matlab-errors-r14sp3-and-later), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: SeisLab 2.01, SeisLab 3.01

类别

Help CenterMATLAB Answers 中查找有关 Scope Variables and Generate Names 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.2.0.1

Updated license

1.2.0.0

Added copyright notice and suppressed an M-Lint warning.

1.1.0.0

Review

1.0.0.0

Adding some keywords, since this entry doesn't appear when I search for "print error" or "print errors".