FUNCTION REFERENCE

throw

Raise an MException.

Raise an MException.

Syntax

throw(exception)

Example

try, throw(MException('pkg:id','failed')); catch e, e.message, end   % failed

Differences from MATLAB: Stack line numbers are not tracked.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.