Exceptions vs. Errors in Matlab

后端 未结 2 510
刺人心
刺人心 2021-02-13 07:01

Matlab provides two mechanisms for signaling that something has gone wrong: the errorfunction and the language\'s exception-handling mechanisms MException

2条回答
  •  醉酒成梦
    2021-02-13 07:52

    There is some more useful information on this thread on MATLAB Answers.

    The answer says that error is much older and that MException is newer and more flexible. Error has been modified to create an MException.

    Error is considered easier to use and targetted at MATLAB end users from the Scientific and Engineering community. MException is more advanced (in that ME objects can be modified and rethrown) and is targeted at the software development community.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题