Exceptions vs. Errors in Matlab

后端 未结 2 2113
无人及你
无人及你 2021-02-13 06:56

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

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-13 07:53

    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.

提交回复
热议问题