rethrow
- : rethrow
(err)¶ Raise the exception described by err again.
err is a structure with the fields
messageandidentifier(and optionallystack) or anMExceptionobject. The message is used as given.Unlike
throw,rethrowpreserves a non-emptystackfrom err instead of rebuilding it at the rethrow site (MATLAB R2026a).